Defines a parameter in an RPC call.
<rpc:error code="100" if="format not in ['short', 'medium', 'long', 'full']">Format parameter is not correct</rpc:error>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
default |
Default value | expression | No | None |
|
name |
Name of the parameter | text | Yes | ||
null |
Also permit a null value? (None in Moya) | text | No | ||
required |
Required? | boolean | No | yes |
|
type |
Parameter type (number, string, bool, list, object, anything) | text | No | "anything" |