Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
22.88k stars 2.26k forks source link

Using @param annotation with body causes redoc rendering to fail #2552

Open iliesh opened 1 week ago

iliesh commented 1 week ago

Describe the bug rodoc fails with error:

Something went wrong...
n.slice is not a function or its return value is not iterable
Stack trace
TypeError: n.slice is not a function or its return value is not iterable
    at get codeSamples (http://127.0.0.1:8001/docs:57:87280)
    at Tu.get (http://127.0.0.1:8001/docs:57:9924)
    at Vb.render (http://127.0.0.1:8001/docs:1688:133)
    at http://127.0.0.1:8001/docs:1108:5907
    at http://127.0.0.1:8001/docs:1108:5926
    at Je (http://127.0.0.1:8001/docs:18:571444)
    at t.track (http://127.0.0.1:8001/docs:18:575944)
    at Vb.<anonymous> (http://127.0.0.1:8001/docs:1108:5846)
    at t.render (http://127.0.0.1:8001/docs:1108:7803)
    at js (http://127.0.0.1:8001/docs:18:404628)

ReDoc Version: 2.1.5
Commit: 3658b6d

Minimal reproducible OpenAPI snippet(if possible)

{
    "description": "body",
     "name": "request",
     "in": "body",
      "required": true,
      "schema": {
           "type": "string"
       }
},