Openapi-core is a Python library that adds client-side and server-side support for the OpenAPI v3.0 and OpenAPI v3.1 specification.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Published by p1c2u about 2 years ago
Published by p1c2u about 2 years ago
NoValue
type removed (#340)attrs
remove and use dataclasses
backport for python 3.6 (#345)pathable
#389create_spec
shortcut #393Request
and Response
protocols #407headers
attribute added to OpenAPIResponse
datatypeRequestParameters
' header
attribute as Headers
typeRequestParameters
' cookie
attribute as ImmutableMultiDict
typeRequestValidationResult
' parameters
attribute as Parameters
typeserver
, operation
and path
attributes removed from RequestValidationResult
EmptyParameterValue
exception renamed to EmptyQueryParameterValue
FalconOpenAPIRequestFactory
requires to be instantiatedcreate_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.Published by p1c2u about 2 years ago
Request
and Response
protocols #407OpenAPIRequest
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.Published by p1c2u about 2 years ago
Published by p1c2u about 2 years ago
Published by p1c2u about 2 years ago
Published by p1c2u over 2 years ago
NoValue
type removed (#340)attrs
remove and use dataclasses
backport for python 3.6 (#345)pathable
#389create_spec
shortcut #393headers
attribute added to OpenAPIResponse
datatypeRequestParameters
' header
attribute as Headers
typeRequestParameters
' cookie
attribute as ImmutableMultiDict
typeRequestValidationResult
' parameters
attribute as Parameters
typeserver
, operation
and path
attributes removed from RequestValidationResult
EmptyParameterValue
exception renamed to EmptyQueryParameterValue
FalconOpenAPIRequestFactory
requires to be instantiatedcreate_spec
shortcut replaced with Spec.create
Published by p1c2u over 3 years ago
Published by p1c2u over 3 years ago
Published by p1c2u over 3 years ago
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
schema
packageexceptions
moved to top level exceptions
modulereadOnly
/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
Published by p1c2u over 3 years ago
Published by p1c2u over 3 years ago
Published by p1c2u over 3 years ago
Published by p1c2u over 3 years ago
Published by p1c2u over 4 years ago
Published by p1c2u over 4 years ago
openapi-schema-validator
library (#212)Published by p1c2u over 4 years ago
Published by p1c2u over 4 years ago
Published by p1c2u over 4 years ago
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
strict
parameter removedFormatter
class. Custom formatters should inherit from the class.InvalidMediaTypeValue
and InvalidParameterValue
exceptionsInvalidParameterValue
exceptionInvalidMediaTypeValue
exceptionOpenAPIRequest
's host_url
and path_pattern
attributes replaced with full_url_pattern
attributePublished by p1c2u about 5 years ago
This release contains new Open API schema validation based on jsonschema (OAS Validator).