Skip to content

Commit 8ca6f87

Browse files
refactor(json-schema): change JSON schema version to draft-07 (DEV-848) (#188)
1 parent 9a5a50b commit 8ca6f87

5 files changed

Lines changed: 135 additions & 45 deletions

File tree

‎knora/dsplib/schemas/lists-only.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
2+
"$schema": "https://json-schema.org/draft-07/schema",
33
"$id": "https://dasch.swiss/schema/list-only.json",
44
"title": "JSON schema for DSP lists",
55
"description": "JSON schema for the lists section used in DSP ontologies",

‎knora/dsplib/schemas/lists.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
2+
"$schema": "https://json-schema.org/draft-07/schema",
33
"$id": "https://dasch.swiss/schema/lists.json",
44
"title": "JSON schema for DSP lists",
55
"description": "JSON schema for lists used in DSP ontologies",

‎knora/dsplib/schemas/ontology.json‎

Lines changed: 65 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema",
2+
"$schema": "https://json-schema.org/draft-07/schema",
33
"$id": "https://dasch.swiss/schema/ontology.json",
44
"title": "JSON schema for DSP ontologies",
55
"description": "JSON schema for DSP ontologies",
@@ -434,7 +434,9 @@
434434
"type": "string",
435435
"oneOf": [
436436
{
437-
"enum": ["hasRepresentation"]
437+
"enum": [
438+
"hasRepresentation"
439+
]
438440
},
439441
{
440442
"$ref": "#/definitions/prefixedname"
@@ -464,7 +466,10 @@
464466
"type": "string",
465467
"oneOf": [
466468
{
467-
"enum": ["hasComment","hasValue"]
469+
"enum": [
470+
"hasComment",
471+
"hasValue"
472+
]
468473
},
469474
{
470475
"$ref": "#/definitions/prefixedname"
@@ -473,7 +478,11 @@
473478
}
474479
},
475480
"gui_element": {
476-
"enum": [ "SimpleText", "Textarea", "Richtext" ]
481+
"enum": [
482+
"SimpleText",
483+
"Textarea",
484+
"Richtext"
485+
]
477486
}
478487
}
479488
}
@@ -494,7 +503,9 @@
494503
"type": "string",
495504
"oneOf": [
496505
{
497-
"enum": ["hasColor"]
506+
"enum": [
507+
"hasColor"
508+
]
498509
},
499510
{
500511
"$ref": "#/definitions/prefixedname"
@@ -524,7 +535,9 @@
524535
"type": "string",
525536
"oneOf": [
526537
{
527-
"enum": ["hasValue"]
538+
"enum": [
539+
"hasValue"
540+
]
528541
},
529542
{
530543
"$ref": "#/definitions/prefixedname"
@@ -554,7 +567,9 @@
554567
"type": "string",
555568
"oneOf": [
556569
{
557-
"enum": ["hasValue"]
570+
"enum": [
571+
"hasValue"
572+
]
558573
},
559574
{
560575
"$ref": "#/definitions/prefixedname"
@@ -584,7 +599,9 @@
584599
"type": "string",
585600
"oneOf": [
586601
{
587-
"enum": ["hasValue"]
602+
"enum": [
603+
"hasValue"
604+
]
588605
},
589606
{
590607
"$ref": "#/definitions/prefixedname"
@@ -593,7 +610,10 @@
593610
}
594611
},
595612
"gui_element": {
596-
"enum": ["Slider","SimpleText"]
613+
"enum": [
614+
"Slider",
615+
"SimpleText"
616+
]
597617
}
598618
}
599619
}
@@ -614,7 +634,9 @@
614634
"type": "string",
615635
"oneOf": [
616636
{
617-
"enum": ["hasGeometry"]
637+
"enum": [
638+
"hasGeometry"
639+
]
618640
},
619641
{
620642
"$ref": "#/definitions/prefixedname"
@@ -647,7 +669,9 @@
647669
"type": "string",
648670
"oneOf": [
649671
{
650-
"enum": ["hasValue"]
672+
"enum": [
673+
"hasValue"
674+
]
651675
},
652676
{
653677
"$ref": "#/definitions/prefixedname"
@@ -656,8 +680,7 @@
656680
}
657681
},
658682
"gui_element": {
659-
"const":
660-
"Geonames"
683+
"const": "Geonames"
661684
}
662685
}
663686
}
@@ -678,7 +701,10 @@
678701
"type": "string",
679702
"oneOf": [
680703
{
681-
"enum": ["hasValue", "seqnum"]
704+
"enum": [
705+
"hasValue",
706+
"seqnum"
707+
]
682708
},
683709
{
684710
"$ref": "#/definitions/prefixedname"
@@ -711,7 +737,9 @@
711737
"type": "string",
712738
"oneOf": [
713739
{
714-
"enum": ["hasValue"]
740+
"enum": [
741+
"hasValue"
742+
]
715743
},
716744
{
717745
"$ref": "#/definitions/prefixedname"
@@ -741,7 +769,9 @@
741769
"type": "string",
742770
"oneOf": [
743771
{
744-
"enum": ["hasValue"]
772+
"enum": [
773+
"hasValue"
774+
]
745775
},
746776
{
747777
"$ref": "#/definitions/prefixedname"
@@ -771,7 +801,9 @@
771801
"type": "string",
772802
"oneOf": [
773803
{
774-
"enum": ["hasValue"]
804+
"enum": [
805+
"hasValue"
806+
]
775807
},
776808
{
777809
"$ref": "#/definitions/prefixedname"
@@ -805,7 +837,9 @@
805837
"type": "string",
806838
"oneOf": [
807839
{
808-
"enum": ["hasValue"]
840+
"enum": [
841+
"hasValue"
842+
]
809843
},
810844
{
811845
"$ref": "#/definitions/prefixedname"
@@ -976,7 +1010,10 @@
9761010
"if": {
9771011
"properties": {
9781012
"gui_element": {
979-
"enum": ["Radio", "List"]
1013+
"enum": [
1014+
"Radio",
1015+
"List"
1016+
]
9801017
}
9811018
}
9821019
},
@@ -990,7 +1027,6 @@
9901027
}
9911028
},
9921029
"additionalProperties": false
993-
9941030
}
9951031
},
9961032
"required": [
@@ -1024,7 +1060,15 @@
10241060
"if": {
10251061
"properties": {
10261062
"gui_element": {
1027-
"enum": ["Richtext", "Date", "TimeStamp", "Geometry", "Geonames", "Checkbox", "Interval"]
1063+
"enum": [
1064+
"Richtext",
1065+
"Date",
1066+
"TimeStamp",
1067+
"Geometry",
1068+
"Geonames",
1069+
"Checkbox",
1070+
"Interval"
1071+
]
10281072
}
10291073
}
10301074
},

0 commit comments

Comments
 (0)