-
Notifications
You must be signed in to change notification settings - Fork 937
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e53c0c7
commit 430d4aa
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |