diff --git a/tests/schema/fail/server_enum_empty.yaml b/tests/schema/fail/server_enum_empty.yaml index cd6d30eb3e..eacb0f94c1 100644 --- a/tests/schema/fail/server_enum_empty.yaml +++ b/tests/schema/fail/server_enum_empty.yaml @@ -1,6 +1,7 @@ openapi: 3.1.0 -# this example should fail as the server variable enum is empty, and so does not contain the default value +# this example should fail as the server variable enum is empty +# (it also does not contain the default value, but this is not checked by the schema) info: title: API diff --git a/tests/schema/pass/callback-object-examples.yaml b/tests/schema/pass/callback-object-examples.yaml index 641a79ea99..795627eb8d 100644 --- a/tests/schema/pass/callback-object-examples.yaml +++ b/tests/schema/pass/callback-object-examples.yaml @@ -27,4 +27,6 @@ components: $ref: '#/components/schemas/SomePayload' responses: '200': - description: callback successfully processed \ No newline at end of file + description: callback successfully processed + schemas: + SomePayload: {} diff --git a/tests/schema/pass/example-object-examples.yaml b/tests/schema/pass/example-object-examples.yaml index 66f8f54133..16022e2b41 100644 --- a/tests/schema/pass/example-object-examples.yaml +++ b/tests/schema/pass/example-object-examples.yaml @@ -3,6 +3,12 @@ info: title: API version: 1.0.0 components: + examples: + zip-example: {} + confirmation-success: {} + schemas: + SuccessResponse: {} + Address: {} requestBodies: with-example: content: diff --git a/tests/schema/pass/header-object-examples.yaml b/tests/schema/pass/header-object-examples.yaml index 305e598486..389eefc4f3 100644 --- a/tests/schema/pass/header-object-examples.yaml +++ b/tests/schema/pass/header-object-examples.yaml @@ -17,7 +17,7 @@ components: type: string pattern: ^" Reference: - $ref: '#/components/schemas/ETag' + $ref: '#/components/headers/ETag' Style: schema: type: array diff --git a/tests/schema/pass/media-type-examples.yaml b/tests/schema/pass/media-type-examples.yaml index ed5862f072..924555affb 100644 --- a/tests/schema/pass/media-type-examples.yaml +++ b/tests/schema/pass/media-type-examples.yaml @@ -3,6 +3,12 @@ openapi: 3.1.0 info: title: API version: 1.0.0 +components: + examples: + frog-example: {} + schemas: + Address: {} + Pet: {} paths: /something: put: diff --git a/tests/schema/pass/path-item-object-example.yaml b/tests/schema/pass/path-item-object-example.yaml index 41a86ec230..777f4e5d0e 100644 --- a/tests/schema/pass/path-item-object-example.yaml +++ b/tests/schema/pass/path-item-object-example.yaml @@ -2,6 +2,10 @@ openapi: 3.1.0 info: title: API version: 1.0.0 +components: + schemas: + Pet: {} + ErrorModel: {} paths: /pets/{id}: get: @@ -32,4 +36,4 @@ paths: type: array items: type: string - style: simple \ No newline at end of file + style: simple diff --git a/tests/schema/pass/path_item_servers_parameters.yaml b/tests/schema/pass/path_item_servers_parameters.yaml index 5db8a25cbf..25b63395fd 100644 --- a/tests/schema/pass/path_item_servers_parameters.yaml +++ b/tests/schema/pass/path_item_servers_parameters.yaml @@ -109,4 +109,6 @@ components: content: application/json: schema: - type: object \ No newline at end of file + type: object + schemas: + SomePayload: {} diff --git a/tests/schema/pass/paths-object-example.yaml b/tests/schema/pass/paths-object-example.yaml index ec56acdb13..82fb2e4f57 100644 --- a/tests/schema/pass/paths-object-example.yaml +++ b/tests/schema/pass/paths-object-example.yaml @@ -2,6 +2,9 @@ openapi: 3.1.0 info: title: API version: 1.0.0 +components: + schemas: + pet: {} paths: /pets: get: @@ -14,4 +17,4 @@ paths: schema: type: array items: - $ref: '#/components/schemas/pet' \ No newline at end of file + $ref: '#/components/schemas/pet' diff --git a/tests/schema/pass/request-body-examples.yaml b/tests/schema/pass/request-body-examples.yaml index da1b0056ad..4a11c440db 100644 --- a/tests/schema/pass/request-body-examples.yaml +++ b/tests/schema/pass/request-body-examples.yaml @@ -2,6 +2,9 @@ openapi: 3.1.0 info: title: API version: 1.0.0 +components: + schemas: + User: {} paths: /something: put: @@ -31,4 +34,4 @@ paths: examples: user: summary: User example in other format - externalValue: https://foo.bar/examples/user-example.whatever \ No newline at end of file + externalValue: https://foo.bar/examples/user-example.whatever diff --git a/tests/schema/pass/response-object-examples.yaml b/tests/schema/pass/response-object-examples.yaml index a63e995d48..f2348d7cc1 100644 --- a/tests/schema/pass/response-object-examples.yaml +++ b/tests/schema/pass/response-object-examples.yaml @@ -39,4 +39,6 @@ components: schema: type: integer no-return-value: - description: object created \ No newline at end of file + description: object created + schemas: + VeryComplexType: {}