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][typescript-angular] additional property useSquareBracketsInArrayNames does not work #20374

Open
3 of 6 tasks
Stivin opened this issue Dec 24, 2024 · 0 comments
Open
3 of 6 tasks

Comments

@Stivin
Copy link

Stivin commented Dec 24, 2024

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

The "useSquareBracketsInArrayNames" parameter has no effect. Adding brackets to array attribute names does not occur.

openapi-generator version

7.10.0

Steps to reproduce
"generator-cli": {
    "version": "7.10.0",
    "generators": {
      "angular": {
        "generatorName": "typescript-angular",
        "output": "gen/api/#{name}",
        "glob": "swagger/*.json",
        "additionalProperties": {
          "ngVersion": "19.0.0",
          "apiModulePrefix": "#{Name}",
          "allowUnicodeIdentifiers": true,
          "fileNaming": "kebab-case",
          "providedIn": "root",
          "serviceFileSuffix": ".api.client",
          "serviceSuffix": "ApiClient",
          "supportsES6": true,
          "useSquareBracketsInArrayNames": true,
          "prefixParameterInterfaces": true,
          "useSingleRequestParameter": true
        },
        "skipValidateSpec": true
      }
    }
  }
Expected

Query Params:

  • pageIndex: 0
  • pageNumber: 10
  • statuses[]: SAVED
  • statuses[]: CANCELED
Received

Query Params:

  • pageIndex: 0
  • pageNumber: 10
  • statuses: SAVED
  • statuses: CANCELED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant