Skip to content

Releases: python-openapi/openapi-core

0.19.0a1 (codename: Alex)

22 Nov 21:46

Choose a tag to compare

Pre-release

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 with content_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. Use SchemaPath from jsonschema-path package.

Breaking changes

  • request_class/response_class renamed to request_cls/response_cls in unmarshalling processors (Django, Falcon and Flask integrations) #667
  • ParameterDeserializersFactory renamed to StyleDeserializersFactory #676
  • unmarshalling byte and binary formats return bytes #647
  • Specification validation is no longer part of Spec object creation and moved to be part of OpenAPI object creation. #686 #716
  • Request and Response protocols' mimetype attribute replaced with content_type #699
  • Request protocol's body attribute returns bytes instead of str #710
  • Response protocol's data attribute returns bytes instead of str #710

0.18.2

06 Nov 13:29

Choose a tag to compare

Bug fixes

  • Deprecated spec validator fix + warnings resolved #717

0.18.1

14 Sep 11:17

Choose a tag to compare

Bug fixes

  • Ignore formats for other types in unmarshalling process #599

Features

  • More media types supported #622
  • Unmarshalling customizations in middlewares (FalconOpenAPIMiddleware, FlaskOpenAPIView, FlaskOpenAPIViewDecorator) #623

Documentation

  • Changed doc indentation from 3 to 4 #631

0.18.0

10 Jul 08:42

Choose a tag to compare

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 of Spec.from_dict is deprecated. Use base_uri instead. #597
  • ref_resolver_handlers parameter of Spec.from_dict is deprecated. Use handlers 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 method
    • spec as a first parameter for validate_request and validate_response shortcuts
    • validator parameter for validate_request and validate_response shortcuts
    • return unmarshalling data result for validate_request and validate_response shortcuts
    • RequestValidator, ResponseValidator and openapi_ objects
    • custom_deserializersparameter
    • custom_formattersparameter

0.18.0a1

18 Jun 12:52

Choose a tag to compare

0.18.0a1 Pre-release
Pre-release

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_url parameter of Spec.from_dict is deprecated. Use base_uri instead.
    • ref_resolver_handlers parameter of Spec.from_dict is deprecated. Use handlers instead.

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 method
    • spec as a first parameter for validate_request and validate_response shortcuts
    • validator parameter for validate_request and validate_response shortcuts
    • return unmarshalling data result for validate_request and validate_response shortcuts
    • RequestValidator, ResponseValidator and openapi_ objects
    • custom_deserializersparameter
    • custom_formattersparameter

0.17.2

15 Jun 13:31

Choose a tag to compare

Features

  • Integrations: Add support for aiohttp.web #571

Fixes

  • Integrations: requests strip mimetype fix #553
  • Unmarshalling: any unmarshaller get types fix #555
  • Shortcuts: validate_request and validate_response show deprecation warning on return value use only #589

0.17.1

17 Mar 08:45

Choose a tag to compare

Changelog

  • Include tests in sdist archives #537
  • add python 3.11 support #538

0.17.0

06 Mar 12:37

Choose a tag to compare

Changelog

  • shortcuts high level public api expose #465
  • ParametersError context property deprecated #462
  • Spec.create deprecated #463
  • Validators refactor #457
  • Webhooks support #470
  • Rename UnmarshalContext to ValidationContext #472
  • Fix PATH_PARAMETER_PATTERN for DRF default value pattern. #468
  • Fix falcon response data none #471
  • Shortcuts backward compatible #482
  • RequestValidator and ResponseValidator backward compatibility #487
  • Fix flask decorator function return other types #489
  • Fix integration Request Response factories 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.
  • InvalidSecurity exception renamed to SecurityNotFound

0.16.6

02 Mar 07:51

Choose a tag to compare

Changelog

  • openapi-schema-validator 0.5.2 tests compatibility fix #527

0.17.0a3

20 Feb 14:53

Choose a tag to compare

0.17.0a3 Pre-release
Pre-release

Changelog

  • 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