Skip to content

0.13.0

Compare
Choose a tag to compare
@p1c2u p1c2u released this 17 Feb 16:48
· 1140 commits to master since this release

Changelog

  • Validation result datatypes (#165)
  • OpenAPI request/response factories introduction (#166)
  • Django OpenAPI request/response factories (#167)
  • Schema exceptions refactor (#168)
  • Operations fields (#169)
  • Validation schema errors iter fix (#170)
  • webob support (#173)
  • CVE-2019-19844 fix (#182)
  • Move Unmarshallers to separate subpackage (#183)
  • Flask OpenAPI view & decorator (#177)
  • Flask OpenAPI request parameters (#185)
  • Move casters to separate subpackage (#184)
  • Move schema validator to separate subpackage (#186)
  • Move unmarshal out of schema models (#188)
  • Deserialise models without schema fix (#190)
  • Move deserialize/cast out of schema models (#191)
  • Custom media type deserializers (#192)
  • Missing Info models (#193)
  • Free-form objects unmarshal (#194)
  • Security validation with API Key and HTTP security types support (#195)
  • Missing path model fields (#196)
  • OpenAPI request datatype refactor (#197)
  • readOnly and writeOnly support (#152)

Backward incompatibility

  • new datatype RequestParameters. That means parameters in RequestValidationResult is no longer dict type but you can still access parameter types (path, query, heder, cookie) lika a dict.
  • validate_body, validate_parameters and validate_data no longer accept wrapper_class, request_wrapper_class and response_wrapper_class keyword arguments. Use request_factory and response_factory instead.
  • openapi_core.wrappers.flask module moved to openapi_core.contrib.flask
  • openapi_core.wrappers.mock module moved to openapi_core.testing.mock
  • validation is now part of unmarshalling process
  • strict parameter removed
  • standardized formatting process with Formatter class. Custom formatters should inherit from the class.
  • unmarshalling process no longer raise InvalidMediaTypeValue and InvalidParameterValue exceptions
  • casting process no longer raise InvalidParameterValue exception
  • deserializing process no longer raise InvalidMediaTypeValue exception
  • OpenAPIRequest 's host_url and path_pattern attributes replaced with full_url_pattern attribute