javanile / yamlinc

Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.
MIT License
114 stars 22 forks source link

Post body parameters partially not visible #29

Open GitProdEnv opened 3 years ago

GitProdEnv commented 3 years ago

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.