Skip to content

Releases: python-openapi/openapi-core

0.16.0

Choose a tag to compare

@p1c2u p1c2u released this 04 Oct 12:57

Changelog

  • Switch to jsonschema-spec #416
  • Use auto-detect validator proxy #418
  • OpenAPI 3.1 support + Auto-detect proxies and request / response validator protocols #419
  • Add py.typed to mark package as supporting typing #420
  • Refuse to cast str or bytes to array #421
  • x-model extension import model class #422
  • Add deepObject support #379
  • Add anyOf support #423
  • Separate werkzeug support #426
  • Starlette support #427

0.15.0

Choose a tag to compare

@p1c2u p1c2u released this 12 Sep 09:41

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.

0.15.0a2

0.15.0a2 Pre-release
Pre-release

Choose a tag to compare

@p1c2u p1c2u released this 07 Sep 11:04

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.

0.14.5

Choose a tag to compare

@p1c2u p1c2u released this 02 Sep 20:03

Changelog

  • openapi-spec-validator strict requirement fix #406

0.14.4

Choose a tag to compare

@p1c2u p1c2u released this 02 Sep 16:25

Changelog

  • pyyaml strict requirement fix #404

0.14.3

Choose a tag to compare

@p1c2u p1c2u released this 02 Sep 14:42

Changelog

  • pin openapi dependencies #403

0.15.0a1

0.15.0a1 Pre-release
Pre-release

Choose a tag to compare

@p1c2u p1c2u released this 03 Jun 06:42

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

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

0.14.2

Choose a tag to compare

@p1c2u p1c2u released this 14 May 11:17

Changelog

  • Non required request body fix (#325)

0.14.1

Choose a tag to compare

@p1c2u p1c2u released this 08 May 15:02

Changelog

  • Parameter simple scenarion for any schema type fix (#323)

0.14.0

Choose a tag to compare

@p1c2u p1c2u released this 07 May 10:12

openapi-core 0.14 is scheduled to be the last major version in the 0.x series.

This release introduces SpecPath which reduces spec creation time and allows to get rid of big schema package

Changes:

  • Spec replaced with SpecPath (#318)

Backward incompatibilities:

  • create_spec shortcut returns SpecPath instead of Spec
  • removed Spec-related schema package
  • schema-related exceptions moved to top level exceptions module
  • readOnly/writeOnly invalid properties raise error (before were ommitted)
  • MediaTypeDeserializersFactory.create expects mimetype string instead of media_type
  • MediaTypeFinder.find returns media_type, mimetype tuple instead of just media_type