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

Use type inferrer when encoding enums #951

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Use type inferrer when encoding enums #951

merged 1 commit into from
Sep 7, 2023

Conversation

ikitommi
Copy link
Member

@ikitommi ikitommi commented Sep 7, 2023

currently:

dev> (m/encode [:and [:keyword] [:enum :one :two]] :one mt/string-transformer)
"one"
dev> (m/encode [:enum :one :two] :one mt/string-transformer)
:one

=> encode should also use type inferrer.

@ikitommi ikitommi changed the title :enum & := encode correctly Use type inferrer when encoding enums Sep 7, 2023
@ikitommi ikitommi merged commit 3f53fda into master Sep 7, 2023
6 checks passed
@ikitommi ikitommi deleted the fix-enum-encode branch September 7, 2023 12:29
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

Successfully merging this pull request may close these issues.

2 participants