JSON スキーマを書いているとします。「型」は「オブジェクト」です。オブジェクトの「プロパティ」に「説明」という名前のプロパティを含めることは合法ですか? 「説明」はJSONスキーマのキーワードなのでお尋ねします。
例:この例では、ワインのヴィンテージを表す JSON オブジェクトの単純なスキーマを示します。4 つのプロパティを指定します。3 つの必須プロパティ (ハウス、年、ブドウの品種) と、「説明」という名前の 1 つのオプション プロパティです。
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Wine vintage",
"description": "JSON schema for wine vintages",
"type": "object",
"properties": {
"house": {
"description": "The name of the house that made the wine",
"type": "string"
},
"year": {
"description": "The year in which the wine was made",
"type": "integer"
},
"varieties": {
"description": "The grape varieties used to make the wine",
"type": "array",
"items": {
"type": "string",
"minItems": 1,
"uniqueItems": true
}
}
"description": {
"description": "A description of the wine's taste and character; a tasting note",
"type": "string"
}
},
"required": ["house", "year", "varieties"]
}