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] [5.4.0] Array with inline object not generated correctly #11528

Open
4 of 6 tasks
Nightapes opened this issue Feb 5, 2022 · 0 comments
Open
4 of 6 tasks

Comments

@Nightapes
Copy link

Nightapes commented Feb 5, 2022

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

When generating the json the array type is not generated correctly.

 public getList(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<Array<object>>;

Object is wrong should be the Item defined in the array

openapi-generator version

My version is 5.4.0:

OpenAPI declaration file content or url

Example file
--> https://gist.github.com/Nightapes/12c38ee1ad6988232e707c49ad5575b4

Generation Details
{
  "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
  "spaces": 2,
  "generator-cli": {
    "version": "5.4.0",
    "generators": {
      "treno": {
        "generatorName": "typescript-angular",
        "glob": "../api.treno.finance/apps/treno-api/openapi.json",
        "output": "libs/main-app/api/src/lib/generated",
        "additionalProperties": {
          "supportsES6": true,
          "stringEnums": true,
          "ngVersion": "13.0.1",
          "providedInRoot": true,
          "disallowAdditionalPropertiesIfNotPresent": false,
          "enumPropertyNaming": "UPPERCASE",
          "enumNameSuffix": "",
          "fileNaming": "kebab-case"
        }
      }
    }
  }
}

Steps to reproduce

Use example and generate lib

Related issues/PRs
Suggest a fix
@Nightapes Nightapes changed the title [BUG][TYPESCRIPT-ANGULAR] Array with inline object not generated correctly [BUG][typescript-angular] [5.4.0] Array with inline object not generated correctly Feb 5, 2022
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