init: document-haness 설계
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "term-ledger.schema.json",
|
||||
"title": "05_term_ledger.json",
|
||||
"type": "object",
|
||||
"required": ["schema_version", "assumed_known", "budgets", "terms"],
|
||||
"properties": {
|
||||
"schema_version": {"const": "1.0"},
|
||||
"assumed_known": {"type": "array", "items": {"type": "string", "minLength": 1, "pattern": "\\S"}, "uniqueItems": true},
|
||||
"budgets": {
|
||||
"type": "object",
|
||||
"required": ["per_sentence", "per_paragraph", "per_section"],
|
||||
"properties": {
|
||||
"per_sentence": {"type": "integer", "minimum": 0},
|
||||
"per_paragraph": {"type": "integer", "minimum": 0},
|
||||
"per_section": {"type": "integer", "minimum": 0}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"terms": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "canonical", "plain_definition", "why_needed", "aliases", "first_section", "first_use"],
|
||||
"properties": {
|
||||
"id": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"canonical": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"plain_definition": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"why_needed": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"aliases": {"type": "array", "items": {"type": "string", "minLength": 1, "pattern": "\\S"}, "uniqueItems": true},
|
||||
"first_section": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"first_use": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"english": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"abbreviation": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
||||
"protected": {"type": "boolean"}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user