From 481ef1ea122bbb5c4aaa65a466db56d2e8c62e31b152c64875f4c0b7295fc4fe Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 25 Jul 2023 06:13:35 +0000 Subject: [PATCH] - Update to 0.18.0: * 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. #597 * ref_resolver_handlers parameter of Spec.from_dict is deprecated. Use handlers instead. #597 * Drop python 3.7 support #595 * Format validators ignore other types and pass (in accordance with the specification) #597 * 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 * Schema unmarshalling/validation returns Invalid* exception (InvalidData, InvalidParameter, InvalidRequestBody, InvalidHeader). Use __cause__ OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=33 --- openapi-core-0.16.6-gh.tar.gz | 3 --- openapi-core-0.18.0-gh.tar.gz | 3 +++ python-openapi-core.changes | 36 +++++++++++++++++++++++++++++++++++ python-openapi-core.spec | 24 ++++++++++++----------- 4 files changed, 52 insertions(+), 14 deletions(-) delete mode 100644 openapi-core-0.16.6-gh.tar.gz create mode 100644 openapi-core-0.18.0-gh.tar.gz diff --git a/openapi-core-0.16.6-gh.tar.gz b/openapi-core-0.16.6-gh.tar.gz deleted file mode 100644 index ec3d0d1..0000000 --- a/openapi-core-0.16.6-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3daa800b941c54f770f821c0f10483d82102e9d4102d5fb18937cc2a91daf427 -size 104008 diff --git a/openapi-core-0.18.0-gh.tar.gz b/openapi-core-0.18.0-gh.tar.gz new file mode 100644 index 0000000..c3ad110 --- /dev/null +++ b/openapi-core-0.18.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4cc109eb4457f92bf8c74444815b9128719100b91f42ecc0607f476157378b6 +size 152967 diff --git a/python-openapi-core.changes b/python-openapi-core.changes index 684f2e9..b125505 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Tue Jul 25 06:10:38 UTC 2023 - Steve Kowalik + +- Update to 0.18.0: + * 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. #597 + * ref_resolver_handlers parameter of Spec.from_dict is deprecated. Use + handlers instead. #597 + * Drop python 3.7 support #595 + * Format validators ignore other types and pass (in accordance with the + specification) #597 + * 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 + * Schema unmarshalling/validation returns Invalid* exception (InvalidData, + InvalidParameter, InvalidRequestBody, InvalidHeader). Use __cause__ + property to get root cause exception. + * InvalidSecurity exception renamed to SecurityNotFound + ------------------------------------------------------------------- Tue Jun 20 17:32:29 UTC 2023 - Ben Greiner diff --git a/python-openapi-core.spec b/python-openapi-core.spec index 5a8dcde..d0c41e2 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -17,13 +17,13 @@ Name: python-openapi-core -Version: 0.16.6 +Version: 0.18.0 Release: 0 Summary: Client- and server-side support for the OpenAPI Specification v3 License: BSD-3-Clause URL: https://github.com/p1c2u/openapi-core Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz#/openapi-core-%{version}-gh.tar.gz -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} BuildRequires: fdupes @@ -33,26 +33,28 @@ BuildRequires: %{python_module Django >= 3.0} BuildRequires: %{python_module Flask} BuildRequires: %{python_module WebOb} BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module aiohttp} +BuildRequires: %{python_module asgiref >= 2.6} BuildRequires: %{python_module falcon >= 3.0} BuildRequires: %{python_module isodate} -BuildRequires: %{python_module jsonschema-spec >= 0.1.1} +BuildRequires: %{python_module jsonschema >= 4.18} +BuildRequires: %{python_module jsonschema-spec >= 0.2.3} BuildRequires: %{python_module more-itertools} -BuildRequires: %{python_module openapi-schema-validator >= 0.3.0 with %python-openapi-schema-validator < 0.5} -BuildRequires: %{python_module openapi-spec-validator >= 0.5.0 with %python-openapi-spec-validator < 0.6} +BuildRequires: %{python_module openapi-schema-validator >= 0.6.0} +BuildRequires: %{python_module openapi-spec-validator >= 0.6.0} BuildRequires: %{python_module parse} -BuildRequires: %{python_module pathable >= 0.4.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} # /SECTION Requires: python-Werkzeug +Requires: python-asgiref >= 3.6 Requires: python-isodate -Requires: python-jsonschema-spec >= 0.1.1 +Requires: python-jsonschema >= 4.18 +Requires: python-jsonschema-spec >= 0.2.3 Requires: python-more-itertools +Requires: python-openapi-schema-validator >= 0.6.0 +Requires: python-openapi-spec-validator >= 0.6.0 Requires: python-parse -Requires: python-pathable >= 0.4.0 -Requires: python-typing-extensions >= 4.3.0 -Requires: (python-openapi-schema-validator >= 0.3.0 with python-openapi-schema-validator < 0.5) -Requires: (python-openapi-spec-validator >= 0.5.0 with python-openapi-spec-validator < 0.6) BuildArch: noarch %python_subpackages