Open mb-dbc-dk opened 3 years ago
Hi, @mb-dbc-dk. I am able to reproduce this issue. I have raised an internal issue with JIRA FISH-5978.
Thanks. It may take a while to fix the issue. You are free to submit a PR to fix this issue if you feel confident to do so.
When writing OpenAPI documentation and a repeated query-parameter is wanted OpenAPI generation fails.
Using
to describe a repeated parameter (ie.
?name=a&name=b&name=c
). A valid openapi yaml is expected on/openapi
Expected Outcome
Status 200 from
/openapi
Current Outcome
Status 500 from
/openapi
and this stacktrace:Steps to reproduce
Environment
Culprit?
https://github.com/payara/Payara/blob/95e95b5714575484c1b8fa6dea665b029450ac5c/appserver/payara-appserver-modules/microprofile/openapi/src/main/java/fish/payara/microprofile/openapi/impl/model/parameters/ParameterImpl.java#L102
But annotation is from:
So I would expect something about EnumModel.class like the parameter "in", instead of Boolean.class.