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 am trying to parse an OpenAPI definition on a windows machine. The parsed OpenAPI is missing the requestBody which refers to a custom schema called User in this case. I have included the yaml file and also the parse output from debugging.
Following is the java code. I am using implementation "io.swagger.parser.v3:swagger-parser:2.0.24" dependency to parse.
Notice that the server url "https" is probably not what you want. A more common situation would be something like /api (relative) or https://api.example.com (absolute)
I am trying to parse an OpenAPI definition on a windows machine. The parsed OpenAPI is missing the requestBody which refers to a custom schema called
User
in this case. I have included the yaml file and also the parse output from debugging.Following is the java code. I am using
implementation "io.swagger.parser.v3:swagger-parser:2.0.24"
dependency to parse.I found that parsing fails midway at:
swagger-parser/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/OpenAPIDeserializer.java
Line 421 in 8b9d8e0
Following is the content of the
requestBody.yaml
file:The output of the parsing:
The text was updated successfully, but these errors were encountered: