diff --git a/docs/tutorial/customtype.rst b/docs/tutorial/customtype.rst index 4ccd4d8cc..66d585e56 100644 --- a/docs/tutorial/customtype.rst +++ b/docs/tutorial/customtype.rst @@ -235,12 +235,27 @@ With this use of a type, it is possible to define our HTTPS and SOCKS Proxy in a default: v5 ... +In the `socks_proxy` family definition, we can see that we have added a new variable, +the `version` variable: + +.. code-block:: yaml + + version: + description: SOCKS host version used by proxy + choices: + - v4 + - v5 + default: v5 + +You can see that the type definition here is flexible : it is perfectly possible +to add to what has been defined in the type. +The type definition is therefore not only a template but much more an extensible schema. .. keypoints:: Key points - - type declaration + - the very practical aspects of type declaration - type usage - more conscious family definition - - the very practical aspects of type declaration + - using a type for an extended family definition We have seen how the definition of type, used effectively, allows for a new expressiveness.