We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When I create a io.swagger.v3.oas.annotations.media.Content example with a date-time property, such as
io.swagger.v3.oas.annotations.media.Content
Content( mediaType = MediaType.APPLICATION_JSON, examples = [ExampleObject(value = """{"refreshAt": "2022-03-03T12:12:16Z"}""")], schema = Schema(implementation = KeyUpdateCommandsResponse::class), )
the plugin generates the following yaml output:
content: application/json: example: refreshAt: 2022-03-03T12:12:16Z
note that the refreshAt property is not escaped with quotation marks.
refreshAt
When I copy the generated yaml into the Swagger Editor, the example is rendered as:
"refreshAt": OrderedMap {}
which is incorrect.
The generated json format has the correct behaviour (but then again, it puts everything in double quotes, so to be expected).
To Reproduce See above.
Expected behavior the plugin generates the following yaml:
content: application/json: example: refreshAt: "2022-03-03T12:12:16Z"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When I create a
io.swagger.v3.oas.annotations.media.Content
example with a date-time property, such asthe plugin generates the following yaml output:
note that the
refreshAt
property is not escaped with quotation marks.When I copy the generated yaml into the Swagger Editor, the example is rendered as:
which is incorrect.
The generated json format has the correct behaviour (but then again, it puts everything in double quotes, so to be expected).
To Reproduce
See above.
Expected behavior
the plugin generates the following yaml:
The text was updated successfully, but these errors were encountered: