Releases: python-openapi/openapi-core
Releases · python-openapi/openapi-core
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
SchemaPathfrom 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
mimetypewithcontent_typeto 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
Specclass is deprecated. UseSchemaPathfrom jsonschema-path package.
Breaking changes
request_class/response_classrenamed torequest_cls/response_clsin unmarshalling processors (Django, Falcon and Flask integrations) #667ParameterDeserializersFactoryrenamed toStyleDeserializersFactory#676- unmarshalling byte and binary formats return bytes #647
- Specification validation is no longer part of
Specobject creation and moved to be part ofOpenAPIobject creation. #686 #716 RequestandResponseprotocols'mimetypeattribute replaced withcontent_type#699Requestprotocol'sbodyattribute returns bytes instead of str #710Responseprotocol'sdataattribute 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_urlparameter ofSpec.from_dictis deprecated. Usebase_uriinstead. #597ref_resolver_handlersparameter ofSpec.from_dictis deprecated. Usehandlersinstead. #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.createmethodspecas a first parameter forvalidate_requestandvalidate_responseshortcutsvalidatorparameter forvalidate_requestandvalidate_responseshortcuts- return unmarshalling data result for
validate_requestandvalidate_responseshortcuts RequestValidator,ResponseValidatorandopenapi_objectscustom_deserializersparametercustom_formattersparameter
0.18.0a1
This version drops support for Python 3.7
Features
- Compatibility with jsonschema 4.18, jsonschema-spec 0.2, openapi-schema-validator 0.6 and openapi-spec-validator 0.6 #597
spec_urlparameter ofSpec.from_dictis deprecated. Usebase_uriinstead.ref_resolver_handlersparameter ofSpec.from_dictis deprecated. Usehandlersinstead.
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.createmethodspecas a first parameter forvalidate_requestandvalidate_responseshortcutsvalidatorparameter forvalidate_requestandvalidate_responseshortcuts- return unmarshalling data result for
validate_requestandvalidate_responseshortcuts RequestValidator,ResponseValidatorandopenapi_objectscustom_deserializersparametercustom_formattersparameter
0.17.2
0.17.1
0.17.0
Changelog
- shortcuts high level public api expose #465
ParametersErrorcontext property deprecated #462Spec.createdeprecated #463- Validators refactor #457
- Webhooks support #470
- Rename
UnmarshalContexttoValidationContext#472 - Fix
PATH_PARAMETER_PATTERNfor DRF default value pattern. #468 - Fix falcon response data none #471
- Shortcuts backward compatible #482
RequestValidatorandResponseValidatorbackward compatibility #487- Fix flask decorator function return other types #489
- Fix integration
RequestResponsefactories check types fix #490 - Fix Requests request dont allow fragments #491
- Fix openapi packages update and tests #498
- unmarshallers integration tests #497
- Unmarshallers and validators refactor #508
- Shortcuts refactor #517
- Media type deserializers refactor #518
Backward incompatibilities
- Schema unmarshalling/validation returns
Invalid*exception (InvalidData,InvalidParameter,InvalidRequestBody,InvalidHeader). Use__cause__property to get root cause exception. InvalidSecurityexception renamed toSecurityNotFound