File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 126126 "body" : {
127127 "type" : " array" ,
128128 "items" : {
129- "anyOf" : [
130- {
131- "$ref" : " Resource.json"
132- },
133- {
134- "$ref" : " Choice.json"
135- }
136- ]
129+ "$ref" : " Resource.json"
137130 }
138131 },
139132 "target" : {
Original file line number Diff line number Diff line change 4242 "items" : {
4343 "$ref" : " Resource.json"
4444 }
45- },
46- "items" : {
47- "type" : " array" ,
48- "items" : {
49- "$ref" : " Annotation.json"
50- }
5145 }
5246 },
5347 "required" : [
5448 " id" ,
55- " type" ,
56- " items"
49+ " type"
5750 ]
5851}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7575 "annotations" : {
7676 "type" : " array" ,
7777 "items" : {
78- "oneOf" : [
79- {
80- "$ref" : " AnnotationPage.json"
81- },
82- {
83- "$ref" : " AnnotationPageRef.json"
84- }
85- ]
78+ "if" : {
79+ "type" : " object" ,
80+ "required" : [
81+ " items"
82+ ]
83+ },
84+ "then" : {
85+ "$ref" : " AnnotationPage.json"
86+ },
87+ "else" : {
88+ "$ref" : " AnnotationPageRef.json"
89+ }
8690 }
8791 }
8892 },
Original file line number Diff line number Diff line change 44 "title" : " Services" ,
55 "type" : " array" ,
66 "items" : {
7- "oneOf" : [
8- {
9- "type" : " object" ,
10- "title" : " serviceV3" ,
11- "properties" : {
12- "id" : { "$ref" : " properties.json#/$defs/id" },
13- "type" : {
14- "type" : " string" ,
15- "pattern" : " ^Service$" ,
16- "default" : " Service"
17- },
18- "profile" : {
19- "type" : " string"
20- },
21- "service" : {
22- "$ref" : " Service.json"
23- }
7+ "if" : {
8+ "type" : " object" ,
9+ "required" : [
10+ " id"
11+ ]
12+ },
13+ "then" : {
14+ "type" : " object" ,
15+ "title" : " serviceV3" ,
16+ "properties" : {
17+ "id" : {
18+ "$ref" : " properties.json#/$defs/id"
2419 },
25- "required" : [
26- " id" ,
27- " type"
28- ]
20+ "type" : {
21+ "type" : " string"
22+ },
23+ "profile" : {
24+ "type" : " string"
25+ },
26+ "service" : {
27+ "$ref" : " Service.json"
28+ }
2929 },
30- {
31- "type" : " object " ,
32- "title" : " serviceV2 " ,
33- "properties" : {
34- "@id" : { "$ref" : " properties.json#/$defs/id " },
35- "@type " : {
36- "type" : " string "
37- } ,
38- "profile " : {
39- "type " : " string "
40- },
41- "service" : {
42- "$ref " : " Service.json "
43- }
30+ "required" : [
31+ " id " ,
32+ " type "
33+ ]
34+ },
35+ "else " : {
36+ "type" : " object " ,
37+ "title" : " serviceV2 " ,
38+ "properties " : {
39+ "@id " : {
40+ "$ref" : " properties.json#/$defs/id "
41+ },
42+ "@type " : {
43+ "type" : " string "
4444 },
45- "required" : [
46- " @id" ,
47- " @type"
48- ]
49- }
50- ]
45+ "profile" : {
46+ "type" : " string"
47+ },
48+ "service" : {
49+ "$ref" : " Service.json"
50+ }
51+ },
52+ "required" : [
53+ " @id" ,
54+ " @type"
55+ ]
56+ }
5157 }
5258}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def validate(instance):
2424 # Use the filename as a URI-like key for consistency
2525 uri = f"{ BASE_URI } /{ json_file .name } "
2626 schemas [uri ] = schema_content
27- print (f"Loaded schema: { json_file .name } " )
27+ # print(f"Loaded schema: {json_file.name}")
2828 except (json .JSONDecodeError , IOError ) as e :
2929 print (f"Failed to load schema from { json_file } : { e } " )
3030
You can’t perform that action at this time.
0 commit comments