diff --git a/tests/schema/fail/server_enum_empty.yaml b/tests/schema/fail/server_enum_empty.yaml index 60aedc5a39..be370ceabb 100644 --- a/tests/schema/fail/server_enum_empty.yaml +++ b/tests/schema/fail/server_enum_empty.yaml @@ -1,6 +1,7 @@ openapi: 3.3.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 9c4e7c191f..690c94cbc2 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 de6998d4b9..307fe6e86d 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/media-type-examples.yaml b/tests/schema/pass/media-type-examples.yaml index bc97ee8f39..0d810fd0ba 100644 --- a/tests/schema/pass/media-type-examples.yaml +++ b/tests/schema/pass/media-type-examples.yaml @@ -4,6 +4,11 @@ info: title: API version: 1.0.0 components: + examples: + frog-example: {} + schemas: + Address: {} + Pet: {} mediaTypes: StreamingPets: description: | @@ -11,7 +16,7 @@ components: suitable for use with any of the streaming JSON media types. itemSchema: - $ref: '#components/schemas/Pet' + $ref: '#/components/schemas/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 a691a9e9e8..0d17f1ddfc 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.3.0 info: title: API version: 1.0.0 +components: + schemas: + Pet: {} + ErrorModel: {} paths: /pets/{id}: get: diff --git a/tests/schema/pass/path_item_servers_parameters.yaml b/tests/schema/pass/path_item_servers_parameters.yaml index 8fd1919323..32eb765210 100644 --- a/tests/schema/pass/path_item_servers_parameters.yaml +++ b/tests/schema/pass/path_item_servers_parameters.yaml @@ -110,3 +110,5 @@ components: application/json: schema: type: object + schemas: + SomePayload: {} diff --git a/tests/schema/pass/paths-object-example.yaml b/tests/schema/pass/paths-object-example.yaml index d580f13a1d..e7875fe787 100644 --- a/tests/schema/pass/paths-object-example.yaml +++ b/tests/schema/pass/paths-object-example.yaml @@ -2,6 +2,9 @@ openapi: 3.3.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 426f6d3cc1..43a8d83d6b 100644 --- a/tests/schema/pass/request-body-examples.yaml +++ b/tests/schema/pass/request-body-examples.yaml @@ -2,6 +2,9 @@ openapi: 3.3.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 59f5372fed..f5b9b23afa 100644 --- a/tests/schema/pass/response-object-examples.yaml +++ b/tests/schema/pass/response-object-examples.yaml @@ -40,4 +40,6 @@ components: schema: type: integer no-return-value: - description: object created \ No newline at end of file + description: object created + schemas: + VeryComplexType: {}