From ea651af4b5f90c9d27db6ec22ebea40e64f6750f Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Tue, 3 Oct 2023 12:18:14 +1300 Subject: [PATCH] Add missing fixture --- tests/Fixtures/Scratch/Nullable.yaml | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/Fixtures/Scratch/Nullable.yaml diff --git a/tests/Fixtures/Scratch/Nullable.yaml b/tests/Fixtures/Scratch/Nullable.yaml new file mode 100644 index 00000000..dbea864c --- /dev/null +++ b/tests/Fixtures/Scratch/Nullable.yaml @@ -0,0 +1,49 @@ +openapi: 3.1.0 +info: + title: Nullable + version: '1.0' +paths: + /api/endpoint: + get: + description: 'An endpoint' + responses: + '200': + description: OK +components: + schemas: + MyDateTime: + type: string + format: rfc3339-timestamp + externalDocs: + description: '**RFC3339** IETF' + url: 'https://tools.ietf.org/html/rfc3339' + example: '2023-08-02T07:06:46+03:30' + Nullable: + properties: + firstname: + type: + - string + - 'null' + lastname: + type: + - string + - 'null' + birthdate: + oneOf: + - + $ref: '#/components/schemas/MyDateTime' + - + type: 'null' + otherdate: + oneOf: + - + $ref: '#/components/schemas/MyDateTime' + - + type: 'null' + anotherdate: + oneOf: + - + $ref: '#/components/schemas/MyDateTime' + - + type: 'null' + type: object