The Parameter schema is used to define input and/or output data to be used by OpenWhisk entities for the purposes of validation.
The ‘schema’ key's value MUST be compatible with the value provided on both the ‘type’ and ‘value’ keys; otherwise, it is considered an error.
The ‘type’ key acknowledges some popular schema (e.g., JSON) to use when validating the value of the parameter. In the future additional (schema) types may be added for convenience.
Where is inferred to be a YAML type as shown in the YAML Types section above (e.g., string, integer, float, boolean, etc.).
If you wish the parser to validate against a different schema, then the multi-line grammar MUST be used where the value would be supplied on the keyname ‘value’ and the type (e.g., ‘json’) and/or schema (e.g., OpenAPI) can be supplied.
In a Manifest or Deployment file, a parameter value may be set from the local execution environment by using the dollar ($) notation to denote names of local environment variables which supply the value to be inserted at execution time.
<parameter>: $<local environment variable name>
... inputs: userName: $DEFAULT_USERNAME