Schema ID
https://gobl.org/draft-0/cbc/usage
Properties
| Title | Property | Type | Description |
|---|---|---|---|
| Keys | keys | array of cbc.Key | Keys used for filtering, such as the addons that offer the definition. |
| Codes | codes | array of cbc.Code | Codes used for filtering, such as the tax regime country codes that offer the definition. |
| Schemas | schemas | array of string | Short schema IDs, without the GOBL base, of the objects in which the definition may be used, such as “tax/combo” or “org/party”. Packages provide constants for them, such as tax.ShortSchemaCombo. |
| Paths | paths | array of string | JSON paths inside a document under which the definition may be used, with ”[*]” matching any array index, for when only some of the schema’s locations apply. |
Validation Rules
| Field | Test | Validation Code / Message |
|---|---|---|
schemas[*] |
| GOBL-CBC-USAGE-01Schema must be a short schema ID |
paths[*] |
| GOBL-CBC-USAGE-02Path must be a JSON path |