-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed languageStringType to support many languages.
- Loading branch information
1 parent
36ec1d3
commit a1fb58e
Showing
1 changed file
with
22 additions
and
15 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
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" | ||
] | ||
} | ||
} |