-
Notifications
You must be signed in to change notification settings - Fork 96
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
Java build fails with schemaToBind is null issue ( version 6.12.3 onwards) #1825
Comments
Try to use micronaut-openapi 6.13.0. If problem still exists. Please add a simple reproducer for this bug |
@vinay-sethi ping |
it was happening with 6.13.0 as well... will add a simple reproducer soon. |
@vinay-sethi any news? Want to fix it for release 6.13.1 |
pi-seed-app-java.zip |
@vinay-sethi Well, the problem was not in micronaut openapi, but in your code. You specified an incorrect value in the schema type. Micronaut openapi was not ready for such crooked data :-) But I agree that such a situation should be handled more correctly. I added a check and next time you will see this message:
|
@altro3 thanks for pointing that out. the same code working in 6.12.2 is what threw me off. |
Expected Behavior
Java build should be completed successfully
when i use 6.12.2, everything works fine.
Actual Behaviour
Note: Generating OpenAPI Documentation
FAILURE: Build failed with an exception.
Execution failed for task ':compileJava'.
Steps To Reproduce
update the below dependency
annotationProcessor(group: 'io.micronaut.openapi', name: 'micronaut-openapi', version: '6.12.3')
Environment Information
JDK 17
Example Application
No response
Version
4.6.+
The text was updated successfully, but these errors were encountered: