I have an open API 3.0 spec which uses date and date time fields.
I've found the API mocking integration does not use the example values in my specification.
For dates, the value is always
For date time it is always
I've created a sample API which demonstrates the issue.
Below is the mocking endpoint
Below is the spec examples which are specified in the spec for the Order schema, which are not returned by the mock.
shipDate:type: stringformat: date-timeexample: "2017-07-21T17:32:28Z"otherDate:type: stringformat: dateexample: "2017-07-21"
Thanks for the details! I have reproduced the issue and forwarded it to our developers.
As a workaround, please add a schema-level example for the whole object - in this case the mock will use the correct date/time examples:
shipDate: '2017-07-21T17:32:28Z' # <------
otherDate: '2017-07-21' # <------
Thanks for the reply, confirming the schema level example worked.