ULID type
andygarfield opened this issue · comments
Initial Checks
- I have searched Google & GitHub for similar requests and couldn't find anything
- I have read and followed the docs and still think this feature is missing
Description
Would V2 welcome a ULID type? This seems like a good implementation. ULIDs are becoming more popular because as it's a timestamp and a globally unique ID all in one, and is time sortable. I don't mind working on a PR.
Affected Components
- Compatibility between releases
- Data validation/parsing
- Data serialization -
.model_dump()
and.model_dump_json()
- JSON Schema
- Dataclasses
- Model Config
- Field Types - adding or changing a particular data type
- Function validation decorator
- Generic Models
- Other Model behaviour -
model_construct()
, pickling, private attributes, ORM mode - Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.
Hello, @andygarfield it would be great if you open this issue in pydantic/pydantic-extra-types.
So we can discuss it and support it while we plan to move with different types in this repository. see pydantic/pydantic#5012
Hello,
Concerning this feature, I think we should use this pip https://github.com/mdomke/python-ulid
WDYT?
Hello,
Concerning this feature, I think we should use this pip
https://github.com/mdomke/python-ulid
WDYT?
Sounds great! we can depend on this package for this integration!