mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
fix: Ioutput dates as ISO 8601 strings in JSON Formatter (#313)
kudos to @jacobbaskin
This commit is contained in:
parent
da9df29fdd
commit
86d8179e4f
|
@ -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