Skip to content

Commit 074322f

Browse files
committed
update expected jsonschemas
1 parent 5ed6e0b commit 074322f

10 files changed

+223
-2
lines changed

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.Biospecimen.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$id": "http://example.com/Biospecimen_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "TBD",
5+
"pattern": "",
56
"properties": {
67
"Component": {
78
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.BulkRNA-seqAssay.display_names_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
}
9797
],
9898
"description": "TBD",
99+
"pattern": "",
99100
"properties": {
100101
"Component": {
101102
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.BulkRNA-seqAssay.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
}
9797
],
9898
"description": "TBD",
99+
"pattern": "",
99100
"properties": {
100101
"Component": {
101102
"description": "TBD",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
{
2+
"$id": "http://example.com/JSONSchemaComponent_validation",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"description": "Component to hold attributes for testing JSON Schemas",
5+
"pattern": "",
6+
"properties": {
7+
"Component": {
8+
"description": "TBD",
9+
"not": {
10+
"type": "null"
11+
},
12+
"title": "Component"
13+
},
14+
"Date": {
15+
"description": "TBD",
16+
"format": "date",
17+
"title": "Date",
18+
"type": "string"
19+
},
20+
"Enum": {
21+
"description": "TBD",
22+
"oneOf": [
23+
{
24+
"enum": [
25+
"ab",
26+
"cd",
27+
"ef",
28+
"gh"
29+
],
30+
"title": "enum"
31+
}
32+
],
33+
"title": "Enum"
34+
},
35+
"EnumNotRequired": {
36+
"description": "TBD",
37+
"oneOf": [
38+
{
39+
"enum": [
40+
"ab",
41+
"cd",
42+
"ef",
43+
"gh"
44+
],
45+
"title": "enum"
46+
},
47+
{
48+
"title": "null",
49+
"type": "null"
50+
}
51+
],
52+
"title": "Enum Not Required"
53+
},
54+
"InRange": {
55+
"description": "TBD",
56+
"maximum": 100.0,
57+
"minimum": 50.0,
58+
"title": "InRange",
59+
"type": "number"
60+
},
61+
"List": {
62+
"description": "TBD",
63+
"oneOf": [
64+
{
65+
"title": "array",
66+
"type": "array"
67+
}
68+
],
69+
"title": "List"
70+
},
71+
"ListEnum": {
72+
"description": "TBD",
73+
"oneOf": [
74+
{
75+
"items": {
76+
"enum": [
77+
"ab",
78+
"cd",
79+
"ef",
80+
"gh"
81+
]
82+
},
83+
"title": "array",
84+
"type": "array"
85+
}
86+
],
87+
"title": "List Enum"
88+
},
89+
"ListEnumNotRequired": {
90+
"description": "TBD",
91+
"oneOf": [
92+
{
93+
"items": {
94+
"enum": [
95+
"ab",
96+
"cd",
97+
"ef",
98+
"gh"
99+
]
100+
},
101+
"title": "array",
102+
"type": "array"
103+
},
104+
{
105+
"title": "null",
106+
"type": "null"
107+
}
108+
],
109+
"title": "List Enum Not Required"
110+
},
111+
"ListInRange": {
112+
"description": "TBD",
113+
"oneOf": [
114+
{
115+
"items": {
116+
"maximum": 100.0,
117+
"minimum": 50.0,
118+
"type": "number"
119+
},
120+
"title": "array",
121+
"type": "array"
122+
}
123+
],
124+
"title": "List InRange"
125+
},
126+
"ListNotRequired": {
127+
"description": "TBD",
128+
"oneOf": [
129+
{
130+
"title": "array",
131+
"type": "array"
132+
},
133+
{
134+
"title": "null",
135+
"type": "null"
136+
}
137+
],
138+
"title": "List Not Required"
139+
},
140+
"ListString": {
141+
"description": "TBD",
142+
"oneOf": [
143+
{
144+
"items": {
145+
"type": "string"
146+
},
147+
"title": "array",
148+
"type": "array"
149+
}
150+
],
151+
"title": "List String"
152+
},
153+
"NoRules": {
154+
"description": "TBD",
155+
"not": {
156+
"type": "null"
157+
},
158+
"title": "No Rules"
159+
},
160+
"NoRulesNotRequired": {
161+
"description": "TBD",
162+
"title": "No Rules Not Required"
163+
},
164+
"Regex": {
165+
"description": "TBD",
166+
"pattern": "[a-f]",
167+
"title": "Regex",
168+
"type": "string"
169+
},
170+
"String": {
171+
"description": "TBD",
172+
"title": "String",
173+
"type": "string"
174+
},
175+
"StringNotRequired": {
176+
"description": "TBD",
177+
"oneOf": [
178+
{
179+
"title": "string",
180+
"type": "string"
181+
},
182+
{
183+
"title": "null",
184+
"type": "null"
185+
}
186+
],
187+
"title": "String Not Required"
188+
},
189+
"URL": {
190+
"description": "TBD",
191+
"format": "uri",
192+
"title": "URL",
193+
"type": "string"
194+
}
195+
},
196+
"required": [
197+
"Component",
198+
"Date",
199+
"Enum",
200+
"InRange",
201+
"List",
202+
"ListEnum",
203+
"ListInRange",
204+
"ListString",
205+
"NoRules",
206+
"Regex",
207+
"String",
208+
"URL"
209+
],
210+
"title": "JSONSchemaComponent_validation",
211+
"type": "object"
212+
}

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.JSONSchemaComponent.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$id": "http://example.com/JSONSchemaComponent_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "Component to hold attributes for testing JSON Schemas",
5+
"pattern": "",
56
"properties": {
67
"Component": {
78
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.MockComponent.schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$id": "http://example.com/MockComponent_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "Component to hold mock attributes for testing all validation rules",
5+
"pattern": "",
56
"properties": {
67
"CheckAges": {
78
"description": "TBD",
@@ -159,7 +160,7 @@
159160
"not": {
160161
"type": "null"
161162
},
162-
"pattern": "^[a-f]",
163+
"pattern": "^[a-b]",
163164
"title": "Check Regex Format"
164165
},
165166
"CheckRegexInteger": {
@@ -190,7 +191,7 @@
190191
"not": {
191192
"type": "null"
192193
},
193-
"pattern": "[a-f]",
194+
"pattern": "[a-b]",
194195
"title": "Check Regex Single"
195196
},
196197
"CheckString": {

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.MockFilename.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$id": "http://example.com/MockFilename_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "TBD",
5+
"pattern": "",
56
"properties": {
67
"Component": {
78
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.MockRDB.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$id": "http://example.com/MockRDB_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "TBD",
5+
"pattern": "",
56
"properties": {
67
"Component": {
78
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.Patient.display_names_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
}
5151
],
5252
"description": "TBD",
53+
"pattern": "",
5354
"properties": {
5455
"Cancer Type": {
5556
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.Patient.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
}
5151
],
5252
"description": "TBD",
53+
"pattern": "",
5354
"properties": {
5455
"CancerType": {
5556
"description": "TBD",

0 commit comments

Comments
 (0)