If we have an attribute in our response defined as follows:
"providerExpiration": {
"type": "string",
"description": "When this provider (account) is configured to expire, if ever",
"format": "date-time",
"example": null
}
the resulting example created by Rapidoc is invalid, it is missing a comma after the null:
If we have an attribute in our response defined as follows:
the resulting example created by Rapidoc is invalid, it is missing a comma after the
null
:If we remove the setting of the
example
value tonull
, a random timestamp is generated and rendered correctly with a subsequent comma: