You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've this Swagger file. Please take a look to the dateOfBirth example fields, both are '1978-06-21'.
But after executing swagger-parser, output is an object and I don't know how obtain original value.
Could you please help me with this?
Thanks.
Swagger file:
info:
version: 0.0.1
title: Simple API
paths:
/persons:
get:
responses:
'200':
description: A list of Person
schema:
$ref: '#/definitions/Persons'
definitions:
Person:
title: Human
properties:
dateOfBirth:
type: string
format: date
example: 1978-06-21
lastTimeOnline:
type: string
format: date-time
readOnly: true
example: 2016-06-10T12:36:58.014Z
Persons:
properties:
items:
type: array
items:
$ref: '#/definitions/Person'
example:
- dateOfBirth: 1970-01-28
lastTimeOnline: 2016-04-10T14:36:58.014Z
Hi, I've this Swagger file. Please take a look to the dateOfBirth example fields, both are '1978-06-21'.
But after executing swagger-parser, output is an object and I don't know how obtain original value.
Could you please help me with this?
Thanks.
Swagger file:
Parser output:
The text was updated successfully, but these errors were encountered: