Originally posted by @borsna in #80 (comment)
One thing that could improve the json schema is adding a short documentation and example e.g:
{
"type": "object",
"description": "Represents a localized text value associated with a specific language.",
"properties": {
"LanguageTag": {
"type": "string",
"description": "IETF BCP 47 language tag that specifies the language and optional regional variant of the text.",
"examples": [
"en",
"en-US",
"sv",
"de"
]
},
"Value": {
"type": "string",
"description": "The localized text value in the specified language."
}
},
"required": [
"LanguageTag",
"Value"
],
"additionalProperties": false,
"examples": [
{
"LanguageTag": "en",
"Value": "Hello world!"
},
{
"LanguageTag": "sv",
"Value": "Hej världen!"
}
]
}
Originally posted by @borsna in #80 (comment)
One thing that could improve the json schema is adding a short documentation and example e.g:
{ "type": "object", "description": "Represents a localized text value associated with a specific language.", "properties": { "LanguageTag": { "type": "string", "description": "IETF BCP 47 language tag that specifies the language and optional regional variant of the text.", "examples": [ "en", "en-US", "sv", "de" ] }, "Value": { "type": "string", "description": "The localized text value in the specified language." } }, "required": [ "LanguageTag", "Value" ], "additionalProperties": false, "examples": [ { "LanguageTag": "en", "Value": "Hello world!" }, { "LanguageTag": "sv", "Value": "Hej världen!" } ] }