Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bugs in json schema (DEV-1142) #252

Merged
merged 11 commits into from Nov 11, 2022
66 changes: 9 additions & 57 deletions knora/dsplib/schemas/lists-only.json
Expand Up @@ -11,18 +11,7 @@
"type": "string"
}
},
"additionalProperties": false
},
"label": {
"$ref": "#/definitions/langstring"
},
"comment": {
"type": "object",
"patternProperties": {
"^(en|de|fr|it|rm)$": {
"type": "string"
}
},
"minProperties": 1,
"additionalProperties": false
},
"node": {
Expand All @@ -32,29 +21,17 @@
"type": "string"
},
"labels": {
"$ref": "#/definitions/label"
"$ref": "#/definitions/langstring"
},
"comments": {
"$ref": "#/definitions/comment"
"$ref": "#/definitions/langstring"
},
"nodes": {
"type": "array",
"minItems": 1,
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/node"
}
},
{
"type": "object",
"$ref": "#/definitions/excelfileref"
},
{
"type": "object",
"$ref": "#/definitions/excelfolderref"
}
]
"items": {
"$ref": "#/definitions/node"
}
}
},
"required": [
Expand All @@ -63,27 +40,6 @@
],
"additionalProperties": false
},
"excelfileref": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"worksheet": {
"type": "string"
},
"startrow": {
"type": "integer"
},
"startcol": {
"type": "integer"
}
},
"required": [
"file",
"worksheet"
]
},
"excelfolderref": {
"type": "object",
"properties": {
Expand All @@ -107,10 +63,10 @@
"type": "string"
},
"labels": {
"$ref": "#/definitions/label"
"$ref": "#/definitions/langstring"
},
"comments": {
"$ref": "#/definitions/comment"
"$ref": "#/definitions/langstring"
},
"nodes": {
"oneOf": [
Expand All @@ -120,10 +76,6 @@
"$ref": "#/definitions/node"
}
},
{
"type": "object",
"$ref": "#/definitions/excelfileref"
},
{
"type": "object",
"$ref": "#/definitions/excelfolderref"
Expand Down