From 14db791ba2305d8c53463442668e7f0fe5e2fec6 Mon Sep 17 00:00:00 2001 From: Tim Haselaars Date: Wed, 1 Nov 2023 11:03:34 +0100 Subject: [PATCH] Updated tests --- test/json-convert-3.1/output.json | 150 +++++++++--------- test/yaml-custom-3.1/output.yaml | 2 +- .../output.yaml | 2 +- 3 files changed, 77 insertions(+), 77 deletions(-) diff --git a/test/json-convert-3.1/output.json b/test/json-convert-3.1/output.json index 01f405e..c86e2d9 100644 --- a/test/json-convert-3.1/output.json +++ b/test/json-convert-3.1/output.json @@ -2461,10 +2461,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2505,11 +2505,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2525,10 +2525,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2569,11 +2569,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2594,10 +2594,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2638,11 +2638,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2658,10 +2658,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2702,11 +2702,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2722,10 +2722,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2766,11 +2766,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2804,10 +2804,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2848,11 +2848,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2868,10 +2868,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2912,11 +2912,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -2942,10 +2942,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -2986,11 +2986,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -3116,10 +3116,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -3160,11 +3160,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -3180,10 +3180,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -3224,11 +3224,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -3281,10 +3281,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -3325,11 +3325,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -3345,10 +3345,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -3389,11 +3389,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -3409,10 +3409,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -3453,11 +3453,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -3673,10 +3673,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -3717,11 +3717,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { @@ -4082,10 +4082,10 @@ "id": { "type": "integer", "format": "int64", - "exclusiveMinimum": 7, "examples": [ 10 - ] + ], + "exclusiveMinimum": 7 }, "username": { "type": "string", @@ -4126,11 +4126,11 @@ "userStatus": { "type": "integer", "format": "int32", - "exclusiveMaximum": 7, - "description": "User Status", "examples": [ 1 - ] + ], + "exclusiveMaximum": 7, + "description": "User Status" } }, "xml": { diff --git a/test/yaml-custom-3.1/output.yaml b/test/yaml-custom-3.1/output.yaml index da8a34a..1809e0b 100644 --- a/test/yaml-custom-3.1/output.yaml +++ b/test/yaml-custom-3.1/output.yaml @@ -478,9 +478,9 @@ paths: X-Rate-Limit: description: calls per hour allowed by the user schema: + const: 1 type: integer format: int32 - const: 1 X-Expires-After: description: date in UTC when token expires schema: diff --git a/test/yaml-filter-custom-default-3.1/output.yaml b/test/yaml-filter-custom-default-3.1/output.yaml index 5e0eeda..d111086 100644 --- a/test/yaml-filter-custom-default-3.1/output.yaml +++ b/test/yaml-filter-custom-default-3.1/output.yaml @@ -27,6 +27,7 @@ paths: description: Update an existing pet by Id requestBody: description: Update an existent pet in the store + required: true content: application/json: schema: @@ -46,7 +47,6 @@ paths: fileName: type: string contentMediaType: application/octet-stream - required: true responses: '200': description: Successful operation