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