-
Notifications
You must be signed in to change notification settings - Fork 6k
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] Bug generating SnakeException: Exception safe-checking yaml content
but only with yaml input file.
#9268
Comments
SnakeException: Exception safe-checking yaml content
but only with yaml input file.
I have the same problem |
I have the same problem with the yaml example file https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/yaml/petstore-expanded.yaml |
#9243 fixes the reported error in latest 2.4.3-SNAPSHOT (available on sonatype snapshots repo and upcoming release). Closing ticket, please reopen if this doesn't solve your issue |
will this fix #9243 also be fixed in the 3.x code branch? I believe this issue occurred in the 3.x version as well. |
yes, by #9237 |
I have upgraded dependencies as below from 2.4.2 to 2.4.4 . But , I am still getting above stacktrace errorlog. |
Description
Getting
SnakeException: Exception safe-checking yaml content
when I runswagger-codegen generate
on a particular yaml input file. It works with the equivalent converted json input file. It also generates the same code between the two formats.Swagger-codegen version
swagger-codegen version
2.4.2
Swagger declaration file content or url
(swagger file is proprietary. Please DM me for a gist URL.)
Command line used for generation
Following is what I use to create the java generated code.
Steps to reproduce
get the yaml file from my gist, and run the above command.
Related issues/PRs
None that I know of.
Suggest a fix/enhancement
Handle the exception correctly.
The text was updated successfully, but these errors were encountered: