Skip to content

Commit

Permalink
Changed languageStringType to support many languages.
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornRoarJoneid authored Feb 12, 2024
1 parent 36ec1d3 commit a1fb58e
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions src/datadoc/no/languageStringType.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",

"languageStringType": {
"$comment": "Reusable langugage string type",
"type": "object",
"properties": {
"en": {
"type": "string"
},
"nn": {
"type": "string"
},
"nb": {
"type": "string"
"$comment": "Reusableb langugage string type",
"type": "array",
"items": [
{
"type": "object",
"properties": {
"languageCode": {
"title": "Language code",
"description": "Language code (ISO 639-1)",
"type": "string"
},
"languageText": {
"title": "Language text",
"description": "Language text",
"type": "string"
}
},
"required": [
"languageCode",
"languageText"
]
}
},
"required": [
"nb"
]
}
}

0 comments on commit a1fb58e

Please sign in to comment.