Resource-id

Latest version: v1.4.0

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.21

* Replace Pydantic annotation with implementation of Pydantic class methods in ResourceId class.
FastAPI does not appear to be able to handle Pydantic-annotated types.

1.4.0

* resource-id now requires pydantic 2; pydantic 1 support has been dropped.
* ResourceId objects are now comparable.
* Packages are now published to pypi using trusted publishing.
* Drop support for python 3.8; add python 3.13.

1.3.0

* ResourceId now parses string inputs as follows: first it attempts to parse input
as a base62-encoded int; if that fails, it attempts to parse as a UUID formatted string.
This turns out to be quite useful when retrieving data as JSON from a database.

1.2.3

* ResourceId json schema type is now correctly set to 'string'.

1.2.2

* Rewrite pydantic 2 methods in ResourceId in response to changes in Pydantic 2.0.3 that broke
JSON schema generation by ResourceId. This caused problems for FastAPI openapi documentation generation.

1.2.0

* ResourceId.__eq__ now returns NotImplemented in response to a class mismatch.
* Pydantic 2 support is now implemented via annotation of the ResourceId type.
* tox test matric tests Pydantic 1 and 2 with each supported python version.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.