diff --git a/tests/schema/fail/server_enum_empty.yaml b/tests/schema/fail/server_enum_empty.yaml index db4b970ced..1467e63cef 100644 --- a/tests/schema/fail/server_enum_empty.yaml +++ b/tests/schema/fail/server_enum_empty.yaml @@ -1,6 +1,7 @@ openapi: 3.2.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 7a7f86f070..c7aac253fb 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 af8cc255f0..569536825e 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 d0487663cd..756cee230b 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 6ace84a8d5..c4b47190ba 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 0ecc2d64fa..d3b73c2ac9 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.2.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 7cedc5d16c..d3c28d75f8 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 2ee08e581e..e084b1619b 100644 --- a/tests/schema/pass/paths-object-example.yaml +++ b/tests/schema/pass/paths-object-example.yaml @@ -2,6 +2,9 @@ openapi: 3.2.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 4da1d41bd4..eac0fa91fb 100644 --- a/tests/schema/pass/request-body-examples.yaml +++ b/tests/schema/pass/request-body-examples.yaml @@ -2,6 +2,9 @@ openapi: 3.2.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 f55d5733ed..c206ca7692 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: {}