openapi-pydantic
openapi-pydantic copied to clipboard
Pydantic OpenAPI schema implementation
I want to return a special kind of JSON: a bare list of objects: ```json ["tour1", "tour2", ...] ``` Pydantic provides the [TypeAdapter](https://docs.pydantic.dev/latest/concepts/type_adapter/) to directly parse / serialize primitive types,...
The only difference comparing to upstream library (openapi-schema-pydantic), that increases requirements from Python >=3.6.1 to Python >=3.8 i see is imports TypedDict and Literal from typing Fixed it with sys.version_info...
Bumps the pip group with 2 updates in the / directory: [black](https://github.com/psf/black) and [idna](https://github.com/kjd/idna). Updates `black` from 23.12.1 to 24.3.0 Release notes Sourced from black's releases. 24.3.0 Highlights This release...
JSON schema has a niche case where are allowed to just consist of a boolean [1]. Therefore, this is a valid schema: ```json { "type": "object", "properties": { "foo": {...
The "$ref" field in the openapi-schema only has a limited set of characters allowed. If I use a Generic Model as the schema_class parameter for "PydanticSchema", the square brackets "[]"...
Bumps the github_actions group with 1 update in the /.github/workflows directory: [actions/download-artifact](https://github.com/actions/download-artifact). Updates `actions/download-artifact` from 3 to 4.1.7 Release notes Sourced from actions/download-artifact's releases. v4.1.7 What's Changed Update @actions/artifact dependency...
Some enhancements I'd be happy port from [my project](https://github.com/python-lapidary/lapidary-render/): - parametrized Reference (#39) - ExtendableModel (#40, also validate extended properties start with 'x-' in 3.0) - parameter style enum (currently...
The default value of explode depends on parameter location.
Currently callbacks, paths and responses are modelled as dicts, but that breaks support for specification extensions. An alternative solution would be to use before-validation to catch all non-extension entries and...
Wherever a `Reference` is used in OpenAPI, it's clear to us what the referred object type is supposed to be. Adding a type parameter to `Reference` (and every field that...