-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
104 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://gobl.org/draft-0/cbc/code-definition", | ||
"$ref": "#/$defs/CodeDefinition", | ||
"$defs": { | ||
"CodeDefinition": { | ||
"properties": { | ||
"code": { | ||
"$ref": "https://gobl.org/draft-0/cbc/code", | ||
"title": "Code", | ||
"description": "Code for which the definition is for." | ||
}, | ||
"name": { | ||
"$ref": "https://gobl.org/draft-0/i18n/string", | ||
"title": "Name", | ||
"description": "Short name for the code, if relevant." | ||
}, | ||
"desc": { | ||
"$ref": "https://gobl.org/draft-0/i18n/string", | ||
"title": "Description", | ||
"description": "Description offering more details about when the code should be used." | ||
}, | ||
"meta": { | ||
"$ref": "https://gobl.org/draft-0/cbc/meta", | ||
"title": "Meta", | ||
"description": "Meta defines any additional details that may be useful or associated\nwith the code." | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"code" | ||
], | ||
"description": "CodeDefinition describes a specific code and how it maps to a human name and description if appropriate." | ||
} | ||
}, | ||
"$comment": "Generated with GOBL v0.68.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://gobl.org/draft-0/cbc/key-definition", | ||
"$ref": "#/$defs/KeyDefinition", | ||
"$defs": { | ||
"KeyDefinition": { | ||
"properties": { | ||
"key": { | ||
"$ref": "https://gobl.org/draft-0/cbc/key", | ||
"title": "Key", | ||
"description": "Actual key value." | ||
}, | ||
"name": { | ||
"$ref": "https://gobl.org/draft-0/i18n/string", | ||
"title": "Name", | ||
"description": "Short name for the key." | ||
}, | ||
"desc": { | ||
"$ref": "https://gobl.org/draft-0/i18n/string", | ||
"title": "Description", | ||
"description": "Description offering more details about when the key should be used." | ||
}, | ||
"codes": { | ||
"items": { | ||
"$ref": "https://gobl.org/draft-0/cbc/code-definition" | ||
}, | ||
"type": "array", | ||
"title": "Codes", | ||
"description": "Codes describes the list of codes that can be used alongside the Key,\nfor example with identities." | ||
}, | ||
"keys": { | ||
"items": { | ||
"$ref": "https://gobl.org/draft-0/cbc/key-definition" | ||
}, | ||
"type": "array", | ||
"title": "Keys", | ||
"description": "Keys is used instead of codes to define a further sub-set of keys that\ncan be used alongside this one." | ||
}, | ||
"pattern": { | ||
"type": "string", | ||
"title": "Pattern", | ||
"description": "Pattern is used to validate the key value instead of using a fixed value\nfrom the code or key definitions." | ||
}, | ||
"map": { | ||
"$ref": "https://gobl.org/draft-0/cbc/code-map", | ||
"title": "Code Map", | ||
"description": "Map helps map local keys to specific codes, useful for converting the\ndescribed key into a local code." | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"key", | ||
"name" | ||
], | ||
"description": "KeyDefinition defines properties of a key that is specific for a regime." | ||
} | ||
}, | ||
"$comment": "Generated with GOBL v0.68.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters