-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
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
Examples for enums with fields are wrapped in double and single quotes #723
Comments
Hi @sam0r040 , I just bumped to Spring Wolf 1.8.0 and I see many improvements: But I alos noticed that the "generated yaml section" for the enum mentionned in this ticket changed from this:
To this:
I think it's related to the fact that this line is invoking
Would it be possible to invoke Thanks |
Hi @pdalfarr, thanks a lot for your input. I think you found a bug here. We will try to fix it for the next release. |
Good to hear from you @pdalfarr. |
Hi @timonback I just added a comment on the ticket as you asked. |
removed example in annotation
Hi @pdalfarr, The code piece you mentioned is related to the x-json-schema, while should not affect the AsyncAPI schema definition. I was not able to reproduce the |
Hi, I don't have enough time at the moment to provide sample code, sorry. Kind Regards ;-) |
FYI, I think I have a better understanding of the cause regarding enums being between
' " ... " '
.generated yaml is:
No problem here:
messageStatus: OK
is correct, i.e.,OK
is NOT surrounded by single and double quote@Schema(enumAsRef = true)
on theMessageStatus
class, then the generated yaml is:So, having enum being Component, seems to 'trigger' the bug (I guess this is a bug...?),
i.e., turn
into
Which is NOT correct
@Schema(enumAsRef = true)
to@Schema(enumAsRef = true, example = "OK")
the generated yaml is now:
So, exactly the same as before EXCEPT FOR
messageStatus: OK
which does not have the' " ... " '
around the enum anymore.I could not find this bug being reported in https://github.com/asyncapi/parser-js/issues?q=is%3Aissue+is%3Aopen+enum
I am not sure where / how to report this bug.
Can I kindly ask you to help me reporting this bug / initiate an inquiry ? I am not sure where I should send this info?
Feel free to copy pate / reference this comment where needed.
Thanks.
Pascal
Originally posted by @pdalfarr in #534 (comment)
The text was updated successfully, but these errors were encountered: