git.iko.soy/typeable/openapi3
on master help sign in
SchemaSpec passes
84f3156Maxim Koltsov
test/Data/Swagger/CommonTestTypes.hs+11−11
@@ -88,7 +88,7 @@ paintSchemaJSON = [aesonQQ|
88 {
88 {
89 "color":
89 "color":
90 {
90 {
91− "$ref": "#/definitions/Color"
91+ "$ref": "#/components/schemas/Color"
92 }
92 }
93 },
93 },
94 "required": ["color"]
94 "required": ["color"]
@@ -181,7 +181,7 @@ userGroupSchemaJSON :: Value
181userGroupSchemaJSON = [aesonQQ|
181userGroupSchemaJSON = [aesonQQ|
182{
182{
183 "type": "array",
183 "type": "array",
184− "items": { "$ref": "#/definitions/UserId" },
184+ "items": { "$ref": "#/components/schemas/UserId" },
185 "uniqueItems": true
185 "uniqueItems": true
186}
186}
187|]
187|]
@@ -228,7 +228,7 @@ playerSchemaJSON = [aesonQQ|
228 {
228 {
229 "position":
229 "position":
230 {
230 {
231− "$ref": "#/definitions/Point"
231+ "$ref": "#/components/schemas/Point"
232 }
232 }
233 },
233 },
234 "required": ["position"]
234 "required": ["position"]
@@ -250,7 +250,7 @@ playersSchemaJSON = [aesonQQ|
250 {
250 {
251 "position":
251 "position":
252 {
252 {
253− "$ref": "#/definitions/Point"
253+ "$ref": "#/components/schemas/Point"
254 }
254 }
255 },
255 },
256 "required": ["position"]
256 "required": ["position"]
@@ -274,14 +274,14 @@ characterSchemaJSON = [aesonQQ|
274 "type": "object",
274 "type": "object",
275 "properties":
275 "properties":
276 {
276 {
277− "PC": { "$ref": "#/definitions/Player" },
277+ "PC": { "$ref": "#/components/schemas/Player" },
278 "NPC":
278 "NPC":
279 {
279 {
280 "type": "object",
280 "type": "object",
281 "properties":
281 "properties":
282 {
282 {
283 "npcName": { "type": "string" },
283 "npcName": { "type": "string" },
284− "npcPosition": { "$ref": "#/definitions/Point" }
284+ "npcPosition": { "$ref": "#/components/schemas/Point" }
285 },
285 },
286 "required": ["npcName", "npcPosition"]
286 "required": ["npcName", "npcPosition"]
287 }
287 }
@@ -353,7 +353,7 @@ characterInlinedPlayerSchemaJSON = [aesonQQ|
353 {
353 {
354 "position":
354 "position":
355 {
355 {
356− "$ref": "#/definitions/Point"
356+ "$ref": "#/components/schemas/Point"
357 }
357 }
358 },
358 },
359 "required": ["position"]
359 "required": ["position"]
@@ -364,7 +364,7 @@ characterInlinedPlayerSchemaJSON = [aesonQQ|
364 "properties":
364 "properties":
365 {
365 {
366 "npcName": { "type": "string" },
366 "npcName": { "type": "string" },
367− "npcPosition": { "$ref": "#/definitions/Point" }
367+ "npcPosition": { "$ref": "#/components/schemas/Point" }
368 },
368 },
369 "required": ["npcName", "npcPosition"]
369 "required": ["npcName", "npcPosition"]
370 }
370 }
@@ -482,7 +482,7 @@ myRoseTreeSchemaJSON = [aesonQQ|
482 "type": "array",
482 "type": "array",
483 "items":
483 "items":
484 {
484 {
485− "$ref": "#/definitions/RoseTree"
485+ "$ref": "#/components/schemas/RoseTree"
486 }
486 }
487 }
487 }
488 },
488 },
@@ -511,7 +511,7 @@ myRoseTreeSchemaJSON' = [aesonQQ|
511 "type": "array",
511 "type": "array",
512 "items":
512 "items":
513 {
513 {
514− "$ref": "#/definitions/myrosetree'"
514+ "$ref": "#/components/schemas/myrosetree'"
515 }
515 }
516 }
516 }
517 },
517 },
@@ -553,7 +553,7 @@ lightSchemaJSON = [aesonQQ|
553 {
553 {
554 "NoLight": { "type": "array", "items": {}, "maxItems": 0, "example": [] },
554 "NoLight": { "type": "array", "items": {}, "maxItems": 0, "example": [] },
555 "LightFreq": { "type": "number", "format": "double" },
555 "LightFreq": { "type": "number", "format": "double" },
556− "LightColor": { "$ref": "#/definitions/Color" },
556+ "LightColor": { "$ref": "#/components/schemas/Color" },
557 "LightWaveLength": { "type": "number", "format": "double" }
557 "LightWaveLength": { "type": "number", "format": "double" }
558 },
558 },
559 "maxProperties": 1,
559 "maxProperties": 1,