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

Post body parameters partially not visible #29

Open
GitProdEnv opened this issue Oct 25, 2020 · 0 comments
Open

Post body parameters partially not visible #29

GitProdEnv opened this issue Oct 25, 2020 · 0 comments

Comments

@GitProdEnv
Copy link

I use spectacle as the docs recommend but when I use inside of my paths an inline block to define (for example the POST) parameters, spectacle shows only the description inside the Request Body section without the post body parameters and parameter definition.

 post:
    summary: '[POST] Create project'
    description: Creates a new project.
    parameters:
      - in: body
        name: name
        description: The project name.
        type: string
    tags:
      - Projects
    responses:
        ....

But when I use refs, everything is working.

 post:
    summary: '[POST] Create project'
    description: Creates a new project.
    parameters:
      - $ref: '#/parameters/projectNameBodyParam'
    tags:
      - Projects
    responses:
        ....

I'm also using swagger-ui-express and everything is working fine here. Maybe it's a problem at spectacle, but maybe its a bug and you can help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant