Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix: reverting date and date-time changes in #895 #950

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/swagger-files/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"format": "date"
},
"string (format: date-time)": {
"description": "Unsupported due to the varying ways that `date-time` is utilized in API definitions for representing dates, the [lack of wide browser support for the input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Browser_compatibility), and that it's not [RFC 3339](https://tools.ietf.org/html/rfc3339) compliant.",
"type": "string",
"format": "date-time"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/api-explorer/__tests__/Params.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ describe('schema handling', () => {
});

it.each([
['date', 'date', stringOas.operation('/format-date', 'get'), 'date'],
['date-time', 'datetime-local', stringOas.operation('/format-date-time', 'get'), 'date-time'],
['dateTime', 'datetime-local', stringOas.operation('/format-dateTime', 'get'), 'date-time'],
['date', 'text', stringOas.operation('/format-date', 'get'), 'date'],
['date-time', 'text', stringOas.operation('/format-date-time', 'get'), 'date-time'],
['dateTime', 'text', stringOas.operation('/format-dateTime', 'get'), 'date-time'],
['password', 'password', stringOas.operation('/format-password', 'get'), 'password'],
['uri', 'url', stringOas.operation('/format-uri', 'get'), 'uri'],
['url', 'url', stringOas.operation('/format-url', 'get'), 'url'],
Expand Down
Loading