Openapi-python-client

Latest version: v0.20.0

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

Scan your dependencies

Page 10 of 12

0.5.4

Additions

- Support for octet-stream content type (116)
- Support for [nullable](https://swagger.io/docs/specification/data-models/data-types/#null) (99)
- Union properties can be defined using oneOf (98)
- Support for lists of strings, integers, floats and booleans as responses (165). Thanks Maistho!

0.5.3

Security

- All values that become file/directory names are sanitized to address path traversal vulnerabilities (CVE-2020-15141)
- All values that get placed into python files (everything from enum names, to endpoint descriptions, to default values) are validated and/or saniziatied to address arbitrary code execution vulnerabilities (CVE-2020-15142)

Changes

- Due to security concerns/implementation complexities, default values are temporarily unsupported for any `RefProperty` that doesn't refer to an enum.
- Defaults for properties must now be valid values for their respective type (e.g. "example string" is an invalid default for an `integer` type property, and the function for an endpoint using it would fail to generate and be skipped).

Additions

- Added support for header parameters (117)

Fixes

- JSON bodies will now be assigned correctly in generated clients(139 & 147). Thanks pawamoy!

0.5.2

Not secure
Additions

- Added `project_name_override` and `package_name_override` config options to override the name of the generated project/package (123)
- The generated library's version is now the same as the OpenAPI doc's version (134)

0.5.1

Not secure
Fixes

- Relative paths are now allowed in securitySchemes/OAuthFlow/tokenUrl (130).
- Schema validation errors will no longer print a stack trace (131).
- Invalid YAML/URL will no longer print stack trace (128)

0.5.0

Not secure
Changes

- When encountering a problem, the generator will now differentiate between warnings (things it was able to skip past) and errors (things which halt generation altogether).

Additions

- The generator can now handle many more errors gracefully, skipping the things it can't generate and continuing with the pieces it can.
- Support for Enums declared in "components/schemas" and references to them (102).
- Generated clients can now be installed via pip (120).
- Support for YAML OpenAPI documents (111)

Internal Changes

- Switched OpenAPI document parsing to use Pydantic based on a vendored version of [openapi-schema-pydantic](https://github.com/kuimono/openapi-schema-pydantic/) (#103).
- Tests can now be run on Windows.

0.4.2

Not secure
Additions

- Support for responses with no content (63 & 66). Thanks acgray!
- Support for custom string formats (64 & 65). Thanks acgray!

Page 10 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.