Skip to content

fix: disallow bool as input value for ULID - #305

Merged
yezz123 merged 1 commit into
pydantic:mainfrom
glowskir:main
Apr 2, 2025
Merged

yezz123 merged 1 commit into
pydantic:mainfrom
glowskir:main

Conversation

@glowskir

@glowskir glowskir commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

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

Sharpek commented Apr 2, 2025

Copy link
Copy Markdown

I have same issue!

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