Skip to content

Commit

Permalink
Add missing fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Oct 2, 2023
1 parent e53c0c7 commit ea651af
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions tests/Fixtures/Scratch/Nullable.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ea651af

Please sign in to comment.