Skip to content

fix: disallow bool as input value for ULID #305

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

Merged
merged 1 commit into from
Apr 2, 2025
Merged

Conversation

glowskir
Copy link
Contributor

@glowskir glowskir commented Apr 2, 2025

Since True/False in python pass isinstance(value,int) with I would be reasonable according to principle of least astonishment to additionaly check and discriminate against bool values in ULID validator.

@Sharpek
Copy link

Sharpek commented Apr 2, 2025

I have same issue!

@yezz123 yezz123 merged commit 6d68417 into pydantic:main Apr 2, 2025
10 checks passed
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.

3 participants