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][ALL] Array of object not generated #9150

Open
lerminou opened this issue Apr 1, 2021 · 0 comments
Open

[BUG][ALL] Array of object not generated #9150

lerminou opened this issue Apr 1, 2021 · 0 comments

Comments

@lerminou
Copy link
Contributor

lerminou commented Apr 1, 2021

LOGGER.info("Model {} not generated since it's an alias to array (without property) and `generateAliasAsModel` is set to false (default)", name);

openapi-generator version
v5.1.0

I got this error:

[main] INFO  o.o.codegen.DefaultGenerator - Model ListOfVariables not generated since it's an alias to array (without property) and `generateAliasAsModel` is set to false (default)

I tried with the config generateAliasAsModel but it generates an empty model

I got this model:

    ListOfVariables:
      type: array
      items:
        type: object
        properties:
          name:
            type: string
          value:
            type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant