-
Notifications
You must be signed in to change notification settings - Fork 534
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
cannot deserialize from Object value (Grallvm native executable) #2147
Comments
I have the same issue, any idea? |
@EnricoDamini
Documentation: https://www.graalvm.org/22.2/reference-manual/native-image/guides/build-with-reflection/ The whole API-Doc-Crafter Project has just this swagger-parser as dependency and creates graalvm native executables for different platforms + docker image. Feel free to copy things. |
hello thanks for your help, I applied your configuration, but it seems to me that the library does not work very well with native execution. With your swagger (that you put above) I can do a correct parsing and the library correctly generates the openapi file. However, when I try to do the same thing with this swagger the library gives me a parsing error as if the file was syntactically incorrect, but in truth it is not, in fact if I execute the same code in non-native java the library is able to parse it.
I get this parsing error:
|
@EnricoDamini Anyway, there are few things you can do.
|
Using plain java graalvm native executables cause multiple issues. The parser mostly returns empty OpenAPI objects without any error. Only on one file I can receive an error. I tried to initialise swagger models at run time, but this did not help
--initialize-at-run-time=io.swagger.v3.oas.models
It would be really cool to know how to use the swagger parser on plain native java.
The text was updated successfully, but these errors were encountered: