Definition defines properties of a key, code, or other value that has a specific meaning or utility.

Schema ID

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

Properties

TitlePropertyTypeReq.Description
Keykeycbc.KeyKey being defined.
Codecodecbc.CodeCode this definition represents.
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.DefinitionValues defines the possible values associated with the key, which themselves will either be keys or codes depending on the context.
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.