Skip to content
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

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

Open
iliesh opened this issue Jun 19, 2024 · 0 comments
Open

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

iliesh opened this issue Jun 19, 2024 · 0 comments

Comments

@iliesh
Copy link

iliesh commented Jun 19, 2024

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"
       }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant