In JsonFormatter, output dates as ISO 8601 strings, per OpenAPI spec.

This commit is contained in:
Jacob Baskin 2017-07-31 14:00:46 -04:00
parent 3488a86ac5
commit f525f8680d

View File

@ -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);