Skip to content

Commit

Permalink
data model: adapt JONSchemas to angular 17
Browse files Browse the repository at this point in the history
Co-Authored-by: Johnny Mariéthoz <[email protected]>
  • Loading branch information
jma committed Jul 10, 2024
1 parent b3bbe03 commit 11a6c67
Show file tree
Hide file tree
Showing 19 changed files with 4,900 additions and 4,143 deletions.
636 changes: 319 additions & 317 deletions sonar/common/jsonschemas/classification-v1.0.0.json

Large diffs are not rendered by default.

36 changes: 21 additions & 15 deletions sonar/common/jsonschemas/identifiedby-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,33 @@
"bf:Identifier",
"bf:Local"
],
"form": {
"options": [
{
"label": "bf:Identifier",
"value": "bf:Identifier"
},
{
"label": "bf:Local",
"value": "bf:Local"
"widget": {
"formlyConfig": {
"props": {
"options": [
{
"label": "bf:Identifier",
"value": "bf:Identifier"
},
{
"label": "bf:Local",
"value": "bf:Local"
}
]
}
]
}
}
},
"source": {
"title": "Source",
"type": "string",
"minLength": 1,
"form": {
"hideExpression": "!model || model.type !== 'bf:Local'",
"expressionProperties": {
"templateOptions.required": "model && model.type === 'bf:Local'"
"widget": {
"formlyConfig": {
"expressions": {
"props.required": "model && model.type === 'bf:Local'",
"hide": "!model || model.type !== 'bf:Local'"
}
}
}
},
Expand All @@ -50,4 +56,4 @@
"type",
"value"
]
}
}
46 changes: 24 additions & 22 deletions sonar/common/jsonschemas/interface_language-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@
"fre",
"ita"
],
"form": {
"templateOptions": {
"sort": true
},
"options": [
{
"label": "lang_ger",
"value": "ger"
},
{
"label": "lang_eng",
"value": "eng"
},
{
"label": "lang_fre",
"value": "fre"
},
{
"label": "lang_ita",
"value": "ita"
"widget": {
"formlyConfig": {
"props": {
"sort": true,
"options": [
{
"label": "lang_ger",
"value": "ger"
},
{
"label": "lang_eng",
"value": "eng"
},
{
"label": "lang_fre",
"value": "fre"
},
{
"label": "lang_ita",
"value": "ita"
}
]
}
]
}
}
}
}
Loading

0 comments on commit 11a6c67

Please sign in to comment.