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
When generating examples with for date-time types with the ExampleBuilder the returned example value does not comply with the format as described in the documentation.
Swagger uses OffsetDateTime.html#toString() for creating the value of date-time example. This method states it will strip the second part when it is empty.
The output will be one of the following ISO-8601 formats:
When generating examples with for date-time types with the
ExampleBuilder
the returned example value does not comply with the format as described in the documentation.The Data-type documentation references rfc3339 section 5.6 as format for date-time.
This RFC states that
time-second
is requiredSwagger uses OffsetDateTime.html#toString() for creating the value of date-time example. This method states it will strip the second part when it is empty.
This conflicts with the format as state in the data-types documentation.
In stead of
toString()
a formatted value should be used. For example DateTimeFormatter.html#ISO_INSTANTThe text was updated successfully, but these errors were encountered: