Releases: python-openapi/openapi-core
Releases · python-openapi/openapi-core
0.19.4
0.19.3
Bug fixes
- Fix resolver for jsonschema validator created by SchemaValidatorsFactory #853
- Use
base_uri
from schema path for spec validation #859 - Openapi 3.0 unmarshalling None with nullable subschema fix #876
Deprecations
spec_base_uri
configuration is deprecated. Usebase_uri
parameter inOpenAPI.from_dict
andOpenAPI.from_file
if you want to define it. #859
0.19.2
0.19.1
0.19.0
This version focuses on OpenAPI app and support for binary requests and responses.
Features
- FastAPI integration #738
- Mimetype parameters (i.e. charset) handling #678
- Parameter deserializers renamed to Style deserializers #676
- Unmarshalling processor enhancement #625
- Option to skip response validation in Django, Falcon and Flask integrations #667
- use explicit arguments (instead of kwargs) in Spec.from_dict and add short note in documentation how to use base_url for Spec.from_dict
- Parameter and header get value refactor #677
- Python 3.12 support #684
- Bump openapi-spec-validator from 0.6.0 to 0.7.0 #685
- Use openapi-spec-validator spec version finder #691
- Move to
SchemaPath
from jsonschema-path package #690 - Specification validation as part of shortcuts #686
- Style deserializing reimplementation with support for all styles #694
- Media type encoding support #646
- Replace
mimetype
withcontent_type
to include content parameters #699 - Suport for primitive properties casting of urlencoded objects. #701
- Request response binary format support #710
- Starlette middleware #680
- OpenAPI app and high level integration #716
Bug fixes
- aiohttp request host_url include scheme #673
- aiohttp response body check none #674
- Validate empty request body fix #713
- Path finder returns default server #648
- OpenAPI config passed to validators and unmarshallers fix #779
- milti types schema format unmarshal fix #562
Deprecations
Spec
class is deprecated. UseSchemaPath
from jsonschema-path package.
Breaking changes
request_class
/response_class
renamed torequest_cls
/response_cls
in unmarshalling processors (Django, Falcon and Flask integrations) #667ParameterDeserializersFactory
renamed toStyleDeserializersFactory
#676- Specification validation is no longer part of
Spec
object creation and moved to be part ofOpenAPI
object creation. #686 #716 Request
andResponse
protocols'mimetype
attribute replaced withcontent_type
#699Request
protocol'sbody
attribute returns bytes instead of str #710Response
protocol'sdata
attribute returns bytes instead of str #710- Unmarshalling no longer raises
FormatUnmarshalError
0.19.0a2
This version focuses on OpenAPI app and support for binary requests and responses.
Bug fixes
- Path finder returns default server #648
- OpenAPI config passed to validators and unmarshallers fix #779
- milti types schema format unmarshal fix #562
Backward incompatibilities
- Unmarshalling no longer raises
FormatUnmarshalError
0.19.0a1 (codename: Alex)
This version focuses on OpenAPI app and support for binary requests and responses.
Features
- Mimetype parameters (i.e. charset) handling #678
- Parameter deserializers renamed to Style deserializers #676
- Unmarshalling processor enhancement #625
- Option to skip response validation in Django, Falcon and Flask integrations #667
- use explicit arguments (instead of kwargs) in Spec.from_dict and add short note in documentation how to use base_url for Spec.from_dict
- byte and binary formats return bytes type #647
- Parameter and header get value refactor #677
- Python 3.12 support #684
- Bump openapi-spec-validator from 0.6.0 to 0.7.0 #685
- Use openapi-spec-validator spec version finder #691
- Move to
SchemaPath
from jsonschema-path package #690 - Specification validation as part of shortcuts #686
- Style deserializing reimplementation with support for all styles #694
- Media type encoding support #646
- Replace
mimetype
withcontent_type
to include content parameters #699 - Suport for primitive properties casting of urlencoded objects. #701
- Request response binary format support #710
- Starlette middleware #680
- OpenAPI app and high level integration #716
Bug fixes
- aiohttp request host_url include scheme #673
- aiohttp response body check none #674
- Validate empty request body fix #713
Deprecations
Spec
class is deprecated. UseSchemaPath
from jsonschema-path package.
Breaking changes
request_class
/response_class
renamed torequest_cls
/response_cls
in unmarshalling processors (Django, Falcon and Flask integrations) #667ParameterDeserializersFactory
renamed toStyleDeserializersFactory
#676- unmarshalling byte and binary formats return bytes #647
- Specification validation is no longer part of
Spec
object creation and moved to be part ofOpenAPI
object creation. #686 #716 Request
andResponse
protocols'mimetype
attribute replaced withcontent_type
#699Request
protocol'sbody
attribute returns bytes instead of str #710Response
protocol'sdata
attribute returns bytes instead of str #710
0.18.2
0.18.1
0.18.0
This version drops support for Python 3.7
Upgrades
- Compatibility with jsonschema 4.18, jsonschema-spec 0.2, openapi-schema-validator 0.6 and openapi-spec-validator 0.6 #597
- Update dependencies #616
Deprecations
spec_url
parameter ofSpec.from_dict
is deprecated. Usebase_uri
instead. #597ref_resolver_handlers
parameter ofSpec.from_dict
is deprecated. Usehandlers
instead. #597
Backward incompatibilities
- Drop python 3.7 support #595
- Format validators ignore other types and pass (in accordance with the specification) #597
- Remove deprecated features #598
Spec.create
methodspec
as a first parameter forvalidate_request
andvalidate_response
shortcutsvalidator
parameter forvalidate_request
andvalidate_response
shortcuts- return unmarshalling data result for
validate_request
andvalidate_response
shortcuts RequestValidator
,ResponseValidator
andopenapi_
objectscustom_deserializers
parametercustom_formatters
parameter