Skip to content

Commit

Permalink
update schema and uischema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Jul 19, 2023
1 parent 757da84 commit fd658a8
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 12 deletions.
134 changes: 122 additions & 12 deletions public/schema/Exhibition.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,41 @@
"type": "integer"
},
"fromType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "nach"
},
{
"const": 2,
"title": "vor"
},
{
"const": 3,
"title": "ca."
}
]
},
"toDate": {
"type": "integer"
},
"toType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "nach"
},
{
"const": 2,
"title": "vor"
},
{
"const": 3,
"title": "ca."
}
]
},
"openingDate": {
"type": "string",
Expand Down Expand Up @@ -237,11 +265,23 @@
"gender": {
"type": "string",
"maxLength": 1,
"enum": [
"m",
"f",
"d",
"u"
"oneOf": [
{
"const": "m",
"title": "m\u00e4nnlich"
},
{
"const": "f",
"title": "weiblich"
},
{
"const": "d",
"title": "divers"
},
{
"const": "u",
"title": "unbekannt"
}
]
},
"description": {
Expand Down Expand Up @@ -654,7 +694,21 @@
"type": "integer"
},
"fromType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "nach"
},
{
"const": 2,
"title": "vor"
},
{
"const": 3,
"title": "ca."
}
]
},
"fromDateDisplay": {
"type": "string",
Expand All @@ -664,7 +718,21 @@
"type": "integer"
},
"toType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "nach"
},
{
"const": 2,
"title": "vor"
},
{
"const": 3,
"title": "ca."
}
]
},
"toDateDisplay": {
"type": "string",
Expand Down Expand Up @@ -755,7 +823,21 @@
"maxLength": 8
},
"dateType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "Vernissage"
},
{
"const": 2,
"title": "Midissage"
},
{
"const": 3,
"title": "Finissage"
}
]
}
}
},
Expand Down Expand Up @@ -893,7 +975,21 @@
"type": "integer"
},
"fromType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "nach"
},
{
"const": 2,
"title": "vor"
},
{
"const": 3,
"title": "ca."
}
]
},
"fromDateDisplay": {
"type": "string",
Expand All @@ -903,7 +999,21 @@
"type": "integer"
},
"toType": {
"type": "integer"
"type": "integer",
"oneOf": [
{
"const": 1,
"title": "nach"
},
{
"const": 2,
"title": "vor"
},
{
"const": 3,
"title": "ca."
}
]
},
"toDateDisplay": {
"type": "string",
Expand Down
2 changes: 2 additions & 0 deletions public/uischema/Exhibition.uischema.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"elements": [
{
"type": "Control",
"label": "Genauigkeit",
"scope": "#/properties/fromType"
},
{
Expand All @@ -118,6 +119,7 @@
"elements": [
{
"type": "Control",
"label": "Genauigkeit",
"scope": "#/properties/toType"
},
{
Expand Down

0 comments on commit fd658a8

Please sign in to comment.