mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
In JsonFormatter, output dates as ISO 8601 strings, per OpenAPI spec.
This commit is contained in:
parent
3488a86ac5
commit
f525f8680d
|
@ -35,6 +35,8 @@ function valueToHTML(value) {
|
|||
level++;
|
||||
output += arrayToHTML(value);
|
||||
level--;
|
||||
} else if (value && value.constructor === Date) {
|
||||
output += decorateWithSpan('"' + value.toISOString() + '"', 'type-string');
|
||||
} else if (valueType === 'object') {
|
||||
level++;
|
||||
output += objectToHTML(value);
|
||||
|
|
Loading…
Reference in New Issue
Block a user