You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked around for the possible causes scoured through documentations etc but could not find anything as such which may indicate I am doing something wrong. Although I could be wrong and this may not be a bug but regardless any help would be appreciated. Thanks.
Environment Information
-Operating System: Windows 11
Java: jdk21
Micronaut Core : 4.6.3
io.micronaut.openapi: 6.13
Example Application
No response
Version
4.6.3
The text was updated successfully, but these errors were encountered:
@altro3
I have created a sample application. I have also checked that the issue is getting reproduced in the same.
The bug seems to be stemming from String payload being initialized as null in ExampleRequestBean while being a String.
Maybe you will have a better insight into it than me.
P.S. Link to repo: https://github.com/desmondblue/MicronautOpenAPIGenerationIssue
Expected Behavior
There should not be any such errors coming up while generating openapi configuration
Actual Behaviour
Error while consuming generated openapi from micronaut openapi codegen plugin
Steps To Reproduce
I have an api like so:
Now upon assembling the swagger.yml for the following requestBody gets generated like so which is incorrect:
I looked around for the possible causes scoured through documentations etc but could not find anything as such which may indicate I am doing something wrong. Although I could be wrong and this may not be a bug but regardless any help would be appreciated. Thanks.
Environment Information
-Operating System: Windows 11
Example Application
No response
Version
4.6.3
The text was updated successfully, but these errors were encountered: