Skip to content

0.15.0

Compare
Choose a tag to compare
@p1c2u p1c2u released this 12 Sep 09:41
· 769 commits to master since this release

Changelog

  • Parameter deserialize complex scenario support (#329)
  • Response headers support (#332)
  • Response headers support for contrib (#333)
  • Drop python 2.7 support (#335 #344 #351)
  • Drop python 3.5 support (#339)
  • Drop python 3.6 support #383
  • Add python 3.10 support #383
  • Falcon2 support drop (#353)
  • Django2 support drop (#358)
  • Support basic re_path for Django integration (#337)
  • unused NoValue type removed (#340)
  • attrs remove and use dataclasses backport for python 3.6 (#345)
  • Request validation parameters dataclass (#346)
  • Handle missing MIME type in MediaTypeFinder (#371)
  • Limit openapi dependencies upper bounds #386
  • switch to pathable #389
  • Get rid of create_spec shortcut #393
  • Request and Response protocols #407
  • validator factories removed from validation shortcuts #408
  • Predefined openapi validators #409
  • Customization refactor #412
  • Static types with mypy #414

Backward incompatibilities

  • Python 3.6 and earlier no longer supported
  • headers attribute added to OpenAPIResponse datatype
  • RequestParameters' header attribute as Headers type
  • RequestParameters' cookie attribute as ImmutableMultiDict type
  • RequestValidationResult' parameters attribute as Parameters type
  • unused server, operation and path attributes removed from RequestValidationResult
  • EmptyParameterValue exception renamed to EmptyQueryParameterValue
  • FalconOpenAPIRequestFactory requires to be instantiated
  • create_spec shortcut replaced with Spec.create
  • 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.