Esmerald

Latest version: v3.6.7

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

Scan your dependencies

Page 11 of 19

2.0.1

This is a small fix into the parser of lists for the OpenAPI specification.

Fixed

- [OpenAPIResponse](https://esmerald.dev/responses#openapi-responses) now allows proper parse of lists as definition. [More details](https://esmerald.dev/responses/#lists).

2.0.0

!!! Warning
When upgrading Esmerald to version 2, this also means the use of Pydantic 2.0 at its core as well as corresponsing technologies
already updated to version 2 of Pydantic (Saffier, Asyncz...).
If you still wish to continue to use Pydantic 1 with Esmerald, it is recommended to use Esmerald prior to version 2.0 which it will
be maintained for a shor period but we **strongly recommend to always use the latest version**.

Changed

- **Major update of the core of Esmerald from Pydantic v1 to Pydantic v2.**
- Changed deprecated functions such as `validator` and `root_validator` to `field_validator` and `model_validator`.
- Transformers no longer support custom fields. Pydantic natively handles that.
- EsmeraldSignature updated for the new version of the FieldInfo.
- `params` reflect the new Pydantic FieldInfo.
- Deprecated OpenAPIView in favour of the new OpenAPI documentation generator.
- Changed OpenAPI config to reflect the new generation of OpenAPI documentation.
- Internal data field is now returning Body type parameter making it easier to integrate with Pydantic 2.0.
- General codebase cleanup.
- Removed old OpenAPI document generator in favour to the newest, fastest, simplest and more effective approach in v2.
- Remove the support of pydantic 1.0. Esmerald 2+ will only support pydantic 2+.

Added

- OpenAPI support for OAuth2.

1.3.0

Changed

- OpenAPI imports and removed unused dependencies.
- Deprecate `pydantic_factories` in favour of `pyfactories`.
- Dropped support for Tortoise ORM natively.

Fixed

- Rename `scripts/format` to `scripts/lint` for consistency.
- `get_hasher` from contrib fixed with the return value of the algorithm.
- Typing of the codebase updated.

1.2.5

Fixed

- Removed deprecated functions allowing the mount and host
- Fixed show_urls for openapi specification

1.2.4

Changed

- Updated pyproject.toml keywords.
- Updated to the latest [Starlette 0.28.0](https://www.starlette.io/release-notes/).
- Exception handler logic refactored.

1.2.3

Fixed

- Upgrade Starlette version to >=0.27.0 for a security release. Details on [Starlette's security](https://github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px)

Page 11 of 19

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.