swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

Resolve Request body

Open li469791221 opened this issue 4 years ago • 1 comments

When I use this to parse my swagger file. How can I get the request body string just like the example on swagger-ui image

li469791221 avatar Apr 23 '21 13:04 li469791221

OpenAPI result = new OpenAPIV3Parser().read("swagger.yaml");

When I code like above. I find the pathItems of the result don't contains example String in the requestBody .

li469791221 avatar Apr 23 '21 13:04 li469791221