KeyDefinition defines properties of a key that is specific for a regime.

Schema ID

https://gobl.org/draft-0/cbc/key-definition

Properties

TitlePropertyTypeReq.Description
Keykeycbc.KeytrueActual key value.
Namenamei18n.StringtrueShort name for the key.
Descriptiondesci18n.StringDescription offering more details about when the key should be used.
Metametacbc.MetaMeta defines any additional details that may be useful or associated with the key.
Valuesvaluesarray of cbc.ValueDefinitionValues defines the possible values associated with the key.
PatternpatternstringPattern is used to validate the key value instead of using a fixed value from the code or key definitions.
Code Mapmapcbc.CodeMapMap helps map local keys to specific codes, useful for converting the described key into a local code.