Skip to content
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

SROAP04005: Could not find schema class in index: java.lang.Void when using rest-client-reactive with Uni<Void> #20152

Closed
mswiderski opened this issue Sep 14, 2021 · 9 comments · Fixed by #20336
Labels
area/openapi kind/bug Something isn't working
Milestone

Comments

@mswiderski
Copy link
Contributor

mswiderski commented Sep 14, 2021

Describe the bug

When using rest-client-reactive that uses following method on the interface

    @POST
    @Path("/name/{countryName}")
    Uni<Void> createCountry(String countryName);

with OpenAPI extension in the project, following warning is logged

SROAP04005: Could not find schema class in index: java.lang.Void

Expected behavior

No warning is logged

Actual behavior

Logged warning SROAP04005: Could not find schema class in index: java.lang.Void

How to Reproduce?

It can be reproduced with rest-client-reactive-quickstart

  1. add following method to org.acme.rest.client.CountriesService
  2. add open api extension to pom.xml
  3. run the project in dev mode

Output of uname -a or ver

Darwin MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.2.2.Final

Build tool (ie. output of mvnw --version or gradlew --version)

maven-3.6.3

Additional information

No response

@mswiderski mswiderski added the kind/bug Something isn't working label Sep 14, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 14, 2021

/cc @michalszynkiewicz

@michalszynkiewicz
Copy link
Member

@mswiderski thanks for the report :)
Do I understand correctly that it works okay without openapi and causes an error if openapi is added?

@mswiderski
Copy link
Contributor Author

in general it all works but it logs the warning, only when the open api is added

@michalszynkiewicz
Copy link
Member

CC @phillip-kruger

@phillip-kruger
Copy link
Member

phillip-kruger commented Sep 15, 2021

This seems like a bug, we probably do not treat Void in Uni as void . This will need to be fixed in SmallRye. @mswiderski would you open an issue there ?

@mswiderski
Copy link
Contributor Author

@phillip-kruger issue created smallrye/smallrye-open-api#914

@geoand
Copy link
Contributor

geoand commented Sep 22, 2021

@phillip-kruger any chance we will get a new version of the Openapi dependency before next week so we can include it in 2.3.0.Final?

@phillip-kruger
Copy link
Member

For sure ! I'll release later today

@geoand
Copy link
Contributor

geoand commented Sep 22, 2021

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/openapi kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants