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

[BUG] #824

Open
ChamNouki opened this issue Oct 2, 2024 · 0 comments
Open

[BUG] #824

ChamNouki opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ChamNouki
Copy link

🐛 Bug Report:

Describe the bug

generator arguments --openapi-normalizer seems not possible to be passed through the node CLI wrapper.

Steps to Reproduce

I've tryed to find this option in openapitools.json schema or passing it directly in the npm script openapi-generator-cli generate --openapi-normalizer KEEP_ONLY_FIRST_TAG_IN_OPERATION=true but that not seems to be passed to the generator seems generated sources for my endpoint are generated for both tags placed on in my openapi contract.

concerned extract of my openapicontract :

  /products/{gtin13}:
    description: 
    get:
      operationId: getProduct
      summary: 
      tags:
        - products
        - supplier
      parameters:
        - name: gtin13
          in: path
          schema:
            type: string
          required: true
      responses:
        200:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
          description: The related Product

Expected behavior

Could it be possible to specify openapi normalizer variable in generators specification in the openapitools.json or directly by the CLI ?

Operation System (please complete the following information):

  • OS: Mac OS
  • Version 15.0

Package System (please complete the following information):

  • Version 2.13.12
@ChamNouki ChamNouki added the bug Something isn't working label Oct 2, 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