Skip to content

0.15.0a2

Pre-release
Pre-release
Compare
Choose a tag to compare
@p1c2u p1c2u released this 07 Sep 11:04
· 772 commits to master since this release

Changelog

  • Request and Response protocols #407
  • validator factories removed from validation shortcuts #408
  • Predefined openapi validators #409
  • Customization refactor #412

Backward incompatibilities

  • OpenAPIRequest and OpenAPIResponse removed. All backward compabilities fromcontrib removed.
  • spec_validate_* shortcuts removed. Use validate_request and validate_response with validator parameter instead.
  • validate_{parameters,body,security} shortcuts removed. Use predefined openapi_request_parameters_validator, openapi_request_body_validator and openapi_request_security_validator from openapi_core.validation.request instead.
  • validate_{data,headers} shortcuts removed. Use predefined openapi_response_data_validator and openapi_response_headers_validator from openapi_core.validation.response instead.
  • custom_media_type_deserializers parameter for RequestValidator and ResponseValidator removed. Use MediaTypeDeserializersFactory with custom_deserializers parameter and pass it to validator with media_type_deserializers_factory parameter.
  • custom_formatters parameter for RequestValidator and ResponseValidator removed. Use SchemaUnmarshallersFactory with custom_formatters parameter and pass it to validator.