Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Type override for enums #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Type override for enums #32

wants to merge 2 commits into from

Conversation

tadam313
Copy link

Added ability to override enum types by moving the "format type check" to the first thing in the string handler. I think it's reasonable to allow consumers to override enum types as well.

Also a comment to explain the format override system only works for strings.

return formats[s.format];
}

formatPredicate = formats[s.format];
Copy link
Author

Choose a reason for hiding this comment

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

doing this to preserve the order of the "and" conditions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant