Replies: 1 comment 1 reply
-
if there was this option wouldn't you expect it to look like this
Also what is the benefit of doing that, if either way is a valid YAML document? Would have to see if the yaml serializer even support that
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I have a request to have all strings fields examples generated in the OpenAPI YAML file to be enclosed by double quotes. For example if I define:
It generates the following YAML output:
The requested scenario would be to generate this:
Where Date example would be "2024-08-26".
You can find the TypeSpec playground
I don't think it's possible at the moment. My current solution is to post-process the yaml file to replace the
example
of typestring
.Would it make sense to add an emitter option to enforce quotes on string values?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions