Skip to content

[OpenApi] The api code is not generated without description #251

Description

@alfredo9f

What happens

If you have an input parameter (like testId) without description the generator creates an empty file for the api:
Example:

openapi: 3.0.3
info:
  title: test
  version: 11.0.0
servers:
- url: https://to_be_defined
paths:
  '/test/{testId}':
    get:
      tags:
      - Test
      summary: test
      description: test
      operationId: Retrieve
      parameters:
      - $ref: '#/components/parameters/testId'
      responses:
        '200':
          $ref: '#/components/responses/TestResponse'
components:
  parameters:
    testId:
      name: testId
      in: path
      required: true
      style: simple
      schema:
        type: string
  schemas:
    TestResponse:
      type: string
  responses:
    TestResponse:
      description: CustomerPositionStateResponse
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TestResponse'

Error:

image

Tested in 4.8.5 version

What is expected

The api code should be generated in the api file.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions