CBC
KeyDefinition
KeyDefinition defines properties of a key that is specific for a regime.
Schema ID
https://gobl.org/draft-0/cbc/key-definition
Properties
Title | Property | Type | Req. | Description |
---|---|---|---|---|
Key | key | cbc.Key | true | Actual key value. |
Name | name | i18n.String | true | Short name for the key. |
Description | desc | i18n.String | Description offering more details about when the key should be used. | |
Meta | meta | cbc.Meta | Meta defines any additional details that may be useful or associated with the key. | |
Values | values | array of cbc.ValueDefinition | Values defines the possible values associated with the key. | |
Pattern | pattern | string | Pattern is used to validate the key value instead of using a fixed value from the code or key definitions. | |
Code Map | map | cbc.CodeMap | Map helps map local keys to specific codes, useful for converting the described key into a local code. |