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

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

Open
alfredo9f opened this issue Jun 5, 2023 · 0 comments
Open

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

alfredo9f opened this issue Jun 5, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alfredo9f
Copy link
Contributor

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.

@alfredo9f alfredo9f added the bug Something isn't working label Jun 5, 2023
jemacineiras added a commit that referenced this issue Aug 8, 2023
* #262 Fix to String generation.

* #262 Fix to String generation.

* #265 Fix Wrong folder generation

* #251 Fix Parameter without description

* #251 Fix Parameter without description

* #251 Fix Parameter without description

* #251 Fix Parameter without description

* #251 Fix Parameter without description
@jemacineiras jemacineiras self-assigned this Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants