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

Refactor enums #289

Merged
merged 7 commits into from
Sep 19, 2022
Merged

Refactor enums #289

merged 7 commits into from
Sep 19, 2022

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Sep 19, 2022

Refactor enum implemenation by keeping things DRY. This PR adds
better foundation over furhter development of features concerning enums.

Aslo remove the limitation of not allowing schema attribute to be used on
oneOf complex enum type. This allows defining of default and example
attribute over complex enum via schema attribute of ToSchema derive macro.

The enum refactoring is not complete but this PR will be first one in the serie of
coming improvements and new features.

relates to #285

@juhaku juhaku merged commit e0b383f into master Sep 19, 2022
@juhaku juhaku deleted the refactor-enums branch September 19, 2022 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

1 participant