git.iko.soy/typeable/openapi3
on master help sign in
SchemaSpec passes
commit84f3156507a0564d0cb4df7146f741f161985643 authorMaxim Koltsov <kolmax94@gmail.com> dateFri 26 Jun 2020, 17:02 (6 years ago) parent8087980
1 file changed+11−11
test/Data/Swagger/CommonTestTypes.hs+11−11
test/Data/Swagger/CommonTestTypes.hs+11−11
@@ -88,7 +88,7 @@ paintSchemaJSON = [aesonQQ|
8888 {
8989 "color":
9090 {
91− "$ref": "#/definitions/Color"
91+ "$ref": "#/components/schemas/Color"
9292 }
9393 },
9494 "required": ["color"]
@@ -181,7 +181,7 @@ userGroupSchemaJSON :: Value
181181userGroupSchemaJSON = [aesonQQ|
182182{
183183 "type": "array",
184− "items": { "$ref": "#/definitions/UserId" },
184+ "items": { "$ref": "#/components/schemas/UserId" },
185185 "uniqueItems": true
186186}
187187|]
@@ -228,7 +228,7 @@ playerSchemaJSON = [aesonQQ|
228228 {
229229 "position":
230230 {
231− "$ref": "#/definitions/Point"
231+ "$ref": "#/components/schemas/Point"
232232 }
233233 },
234234 "required": ["position"]
@@ -250,7 +250,7 @@ playersSchemaJSON = [aesonQQ|
250250 {
251251 "position":
252252 {
253− "$ref": "#/definitions/Point"
253+ "$ref": "#/components/schemas/Point"
254254 }
255255 },
256256 "required": ["position"]
@@ -274,14 +274,14 @@ characterSchemaJSON = [aesonQQ|
274274 "type": "object",
275275 "properties":
276276 {
277− "PC": { "$ref": "#/definitions/Player" },
277+ "PC": { "$ref": "#/components/schemas/Player" },
278278 "NPC":
279279 {
280280 "type": "object",
281281 "properties":
282282 {
283283 "npcName": { "type": "string" },
284− "npcPosition": { "$ref": "#/definitions/Point" }
284+ "npcPosition": { "$ref": "#/components/schemas/Point" }
285285 },
286286 "required": ["npcName", "npcPosition"]
287287 }
@@ -353,7 +353,7 @@ characterInlinedPlayerSchemaJSON = [aesonQQ|
353353 {
354354 "position":
355355 {
356− "$ref": "#/definitions/Point"
356+ "$ref": "#/components/schemas/Point"
357357 }
358358 },
359359 "required": ["position"]
@@ -364,7 +364,7 @@ characterInlinedPlayerSchemaJSON = [aesonQQ|
364364 "properties":
365365 {
366366 "npcName": { "type": "string" },
367− "npcPosition": { "$ref": "#/definitions/Point" }
367+ "npcPosition": { "$ref": "#/components/schemas/Point" }
368368 },
369369 "required": ["npcName", "npcPosition"]
370370 }
@@ -482,7 +482,7 @@ myRoseTreeSchemaJSON = [aesonQQ|
482482 "type": "array",
483483 "items":
484484 {
485− "$ref": "#/definitions/RoseTree"
485+ "$ref": "#/components/schemas/RoseTree"
486486 }
487487 }
488488 },
@@ -511,7 +511,7 @@ myRoseTreeSchemaJSON' = [aesonQQ|
511511 "type": "array",
512512 "items":
513513 {
514− "$ref": "#/definitions/myrosetree'"
514+ "$ref": "#/components/schemas/myrosetree'"
515515 }
516516 }
517517 },
@@ -553,7 +553,7 @@ lightSchemaJSON = [aesonQQ|
553553 {
554554 "NoLight": { "type": "array", "items": {}, "maxItems": 0, "example": [] },
555555 "LightFreq": { "type": "number", "format": "double" },
556− "LightColor": { "$ref": "#/definitions/Color" },
556+ "LightColor": { "$ref": "#/components/schemas/Color" },
557557 "LightWaveLength": { "type": "number", "format": "double" }
558558 },
559559 "maxProperties": 1,