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

[rust client] Client does not generate enums. Bug: oneOf schemas are not correct #1369

Closed
ghost opened this issue Nov 4, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 4, 2018

Description

Enums are not been generated (there is a TODO though).
The oneOf schemas are not generated correctly. See my pr where I changed the generated code so that it could compile.

openapi-generator version

version 3.3.2 and 4.0.0

OpenAPI declaration file content or url

This is the schema used. See below what caused the bug.

        200:
          description: Ticker/s for the last 24hr
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ticker24hr'
                  - $ref: '#/components/schemas/ticker24hrlist'
Command line used for generation

'java -jar openapi-generator-cli-3.3.2.jar generate -i binance.yml -o test/ -g rust'

Suggest a fix/enhancement

I am new to rust and are still learning so are a bit unsure if the enums changes are correct if someone can confirm, Ill do a pr to add the enums.

The oneOf bug though, I am not sure how to fix.

@ghost
Copy link
Author

ghost commented Jul 8, 2019

fixed in #2244 👍

This issue was closed.
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