Apipie / apipie-rails

Ruby on Rails API documentation tool
Apache License 2.0
2.47k stars 460 forks source link

How to display an example for a request in Swagger? #922

Closed ekuzovlev closed 5 months ago

ekuzovlev commented 5 months ago

Swagger has a requestBody field that allows displaying an example for the request. How can this be specified in Apipie?

 requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Order
image
PanosCodes commented 5 months ago

I believe you can't. It looks like a known limitation

ekuzovlev commented 5 months ago

I didn't notice this section, Thank you for the help.