-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@FormParam OpenAPI not displayed properly in Resteasy Reactive #26461
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
@phillip-kruger do we have special RESTEasy Reactive support in our OpenAPI integration? |
Not really no, the normal JAX-RS module works for both. Is this issue Reactive specific ? |
Ok I read the issue again, seems like this used to work in the Non-reactive way. So this must be a bug |
Yeah, because it's about our Multipart support. Essentially Multipart objects are just POJOs, very similar actually to |
@abuelgasimsaadeldin - do you have a small reproducer ? @MikeEdgar any comments ? |
@phillip-kruger, yes sure CountryRequst.java (dto):
CountryResource.java (resource):
|
I'm looking into this in smallrye/smallrye-open-api#1173, please feel free to assign to me. |
Thanks, done |
Hi there, I see that this issue has already been resolved, may I know what changes are needed in the pom.xml (if any) to be able to get the expected behavior? Thanks! |
@abuelgasimsaadeldin - prior to the release of Quarkus 2.12, you can add the following to the <dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-open-api</artifactId>
<version>2.1.23</version>
</dependency> |
Hi @MikeEdgar, I see, thanks for the response, I've just tried adding the following smallrye-open-api dependency to my pom.xml, however my problem still persists (not sure if I'm doing something wrong) as for the Quarkus version, I am currently using version Your input is highly appreciated. Thanks again! |
@abuelgasimsaadeldin , sorry I gave you the wrong dependency. If this doesn't work, you may need to tinker with the quarkus-maven-plugin's dependencies. @phillip-kruger - what's the best way to managed the version of the JAX-RS OpenAPI extension being used? <dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-open-api-core</artifactId>
<version>2.1.23</version>
</dependency> |
Describe the bug
Enquiry regarding the request dto, previously before migrating to resteasy reactive I used to have the
@FormParam
annotation providing theKEY
value for the request andString variable
for the variable initialization, however I noticed that now theKEY
value is using the variable name if that makes sense.For example:
and in Swagger instead of setting the
KEY
to"destination_country"
(which is required) it instead uses"desinationCountry"
which gives out errors so I had to initialize my variables withString destination_country
which I believe is not common practice and instead should be using camelCase, hence your input in this is highly appreciated. Thanks.Expected behavior
Expected behavior swagger UI when setting
@FormParam("destination_country")
and String destinationCountry::**Actual behavior
Actual behavior swagger UI when setting
@FormParam("destination_country")
and String destinationCountry:How to Reproduce?
CountryRequst.java (dto):
CountryResource.java (resource):
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: