Cadwyn

Latest version: v3.15.7

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

Scan your dependencies

Page 8 of 11

3.1.0

Added

* `module(...).had(import_=...)` construct for adding imports in older versions
* Codegen plugin system that allows easily customizing code generation for any purpose. It also significantly simplifies the core code of code generation

3.0.2

Fixed

* If a user returned a FastAPI/Starlette `Response` with an empty body, we still tried to serialize it which caused an invalid response body

[Unreleased]

3.0.0

Added

* Pydantic 2 support
* Expanded reference section to docs
* Contributor docs
* Expanded makefile commands

Changed

* internal request representation is now done using an annotation
* `latest_schemas_module` was renamed to `latest_schemas_package` everywhere
* `api_version_var` in `VersionBundle` is now an optional argument instead of a required one

Removed

* `cadwyn.internal_body_representation_of` because it is now done using an annotation

2.3.4

Fixed

* `schema(...).field(...).had(ge=...)` for union fields previously raised an `AttributeError` on code generation

2.3.3

Fixed

* Field ASTs not preserving the original structure when constrained fields were changed

Added

* Support for synchronous endpoints

2.3.2

Fixed

* The bug where fields from parent schemas also appeared in child schemas

Page 8 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.