Closed Lewiscowles1986 closed 1 year ago
Proposed fix MR for the Z string on date-time
, should solve [2] https://github.com/json-schema-faker/json-schema-faker/pull/765
Also a one-liner to fix this spec to comply with the example-given, and description too. https://github.com/plaid/plaid-openapi/pull/123
thanks!! Like I mentioned on the PR I've submitted a fix for this internally, it will be released here next month.
👍
👋 It looks like your dates and date-time entries are subtly breaking a tool I use
json-schema-faker
when used withJSONSchemaFaker.option({ useExamplesValue: true, useDefaultValue: true });
This is for two reasons I can tell
datetime
being set where something should bedate
(at least according to openapi 3 spec at swagger.io)date-time
(correct OAS3 👍 ) having a "zulu-character terminated string" format without a.
(this could well be ajson-schema-faker
support problem, as the example given in OpenAPI swagger 3 spec is2017-07-21T17:32:28Z
which does match your format.