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

Manage enum properly on Dart Jaguar generator #3654

Merged
merged 2 commits into from
Aug 28, 2019

Conversation

jaumard
Copy link
Contributor

@jaumard jaumard commented Aug 15, 2019

Enum where not generate properly at all, now should be ok

final DateTime shipDate;
/* Order Status */
@Alias('status', isNullable: false)
@Alias('status', isNullable: false,
processor: const StringFieldProcessor(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wing328 is there a way to know if the enum is from and #ref or inline ? Because this will not work :/
#ref enum are generating a new file and class, but inline are not for some reason and does this instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have ignored inline enum and handle them as simple string, I don't think their is another easy way to do that for now, at least the compiled code works like this

@wing328 wing328 changed the title manage enum properly on jaguar generator Manage enum properly on Dart Jaguar generator Aug 28, 2019
@wing328 wing328 added this to the 4.1.2 milestone Aug 28, 2019
@wing328 wing328 merged commit f4d3df7 into OpenAPITools:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants