forked from pool/python-openapi-spec-validator
- Update to 0.5.1:
* Responses schema validation #177 * detect spec schema version #167 * static types and Mypy static type check #168 * tests mark network #169 * schemas and validators lazy loading proxy #170 - Drop patch openapi-spec-validator-skip-urls.patch, fixed by upstream by markers. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-spec-validator?expand=0&rev=18
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8042d76a4246026abb31a7c02a4c4a3c46f10de3a1998940069e8803f00f04ef
|
|
||||||
size 46051
|
|
||||||
3
0.5.1.tar.gz
Normal file
3
0.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:20d2b8fd30549417062e997aa7f367bf6538647f201399bafff3c28407b6fad7
|
||||||
|
size 39539
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
Index: openapi-spec-validator-0.4.0/tests/integration/test_shortcuts.py
|
|
||||||
===================================================================
|
|
||||||
--- openapi-spec-validator-0.4.0.orig/tests/integration/test_shortcuts.py 2022-03-28 17:05:43.215031152 +0200
|
|
||||||
+++ openapi-spec-validator-0.4.0/tests/integration/test_shortcuts.py 2022-03-28 17:06:09.911189896 +0200
|
|
||||||
@@ -112,6 +112,7 @@ class TestLocalPetstoreExample(BaseTestV
|
|
||||||
return factory.spec_from_file("data/v3.0/petstore.yaml")
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestPetstoreV2Example(BaseTestValidValidateV2SpecUrl):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -122,7 +123,7 @@ class TestPetstoreV2Example(BaseTestVali
|
|
||||||
'yaml/petstore.yaml'
|
|
||||||
)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestApiV2WithExampe(BaseTestValidValidateV2SpecUrl):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -133,7 +134,7 @@ class TestApiV2WithExampe(BaseTestValidV
|
|
||||||
'yaml/api-with-examples.yaml'
|
|
||||||
)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestPetstoreV2ExpandedExample(BaseTestValidValidateV2SpecUrl):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -144,7 +145,7 @@ class TestPetstoreV2ExpandedExample(Base
|
|
||||||
'yaml/petstore-expanded.yaml'
|
|
||||||
)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestPetstoreExample(BaseTestValidValidateV3SpecUrl):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -155,7 +156,7 @@ class TestPetstoreExample(BaseTestValidV
|
|
||||||
'petstore.yaml'
|
|
||||||
)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestApiWithExample(BaseTestValidValidateV3SpecUrl):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -166,7 +167,7 @@ class TestApiWithExample(BaseTestValidVa
|
|
||||||
'api-with-examples.yaml'
|
|
||||||
)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestPetstoreExpandedExample(BaseTestValidValidateV3SpecUrl):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
Index: openapi-spec-validator-0.4.0/tests/integration/test_validate.py
|
|
||||||
===================================================================
|
|
||||||
--- openapi-spec-validator-0.4.0.orig/tests/integration/test_validate.py 2022-03-28 17:05:43.215031152 +0200
|
|
||||||
+++ openapi-spec-validator-0.4.0/tests/integration/test_validate.py 2022-03-28 17:05:59.471127814 +0200
|
|
||||||
@@ -64,6 +64,7 @@ class TestLocalParentReferenceExample(Ba
|
|
||||||
return factory.spec_from_file(self.spec_file)
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestPetstoreExample(BaseTestValidOpenAPIv3Validator):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -75,7 +76,7 @@ class TestPetstoreExample(BaseTestValidO
|
|
||||||
)
|
|
||||||
return factory.spec_from_url(url)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestApiWithExample(BaseTestValidOpenAPIv3Validator):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -87,7 +88,7 @@ class TestApiWithExample(BaseTestValidOp
|
|
||||||
)
|
|
||||||
return factory.spec_from_url(url)
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.skip
|
|
||||||
class TestPetstoreExpandedExample(BaseTestValidOpenAPIv3Validator):
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 5 05:23:42 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.5.1:
|
||||||
|
* Responses schema validation #177
|
||||||
|
* detect spec schema version #167
|
||||||
|
* static types and Mypy static type check #168
|
||||||
|
* tests mark network #169
|
||||||
|
* schemas and validators lazy loading proxy #170
|
||||||
|
- Drop patch openapi-spec-validator-skip-urls.patch, fixed by upstream
|
||||||
|
by markers.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 28 15:10:50 UTC 2022 - pgajdos@suse.com
|
Mon Mar 28 15:10:50 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -19,39 +19,36 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: python-openapi-spec-validator
|
Name: python-openapi-spec-validator
|
||||||
Version: 0.4.0
|
Version: 0.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python module for validating OpenAPI Specs against Swagger and OAS3
|
Summary: Python module for validating OpenAPI Specs against Swagger and OAS3
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/p1c2u/openapi-spec-validator
|
URL: https://github.com/p1c2u/openapi-spec-validator
|
||||||
Source: https://github.com/p1c2u/openapi-spec-validator/archive/%{version}.tar.gz
|
Source: https://github.com/p1c2u/openapi-spec-validator/archive/%{version}.tar.gz
|
||||||
Patch0: openapi-spec-validator-skip-urls.patch
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module poetry}
|
BuildRequires: %{python_module poetry}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-PyYAML >= 5.1
|
Requires: python-PyYAML >= 5.1
|
||||||
Requires: python-jsonschema
|
Requires: python-importlib-resources
|
||||||
Requires: python-openapi-schema-validator
|
Requires: python-jsonschema >= 4.0.0
|
||||||
|
Requires: python-jsonschema-spec >= 0.1.1
|
||||||
|
Requires: python-lazy-object-proxy >= 1.7.1
|
||||||
|
Requires: python-openapi-schema-validator >= 0.3.2
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-six
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module PyYAML >= 5.1}
|
BuildRequires: %{python_module PyYAML >= 5.1}
|
||||||
BuildRequires: %{python_module jsonschema}
|
BuildRequires: %{python_module importlib-resources}
|
||||||
BuildRequires: %{python_module openapi-schema-validator}
|
BuildRequires: %{python_module jsonschema >= 4.0.0}
|
||||||
|
BuildRequires: %{python_module jsonschema-spec >= 0.1.1}
|
||||||
|
BuildRequires: %{python_module lazy-object-proxy >= 1.7.1}
|
||||||
|
BuildRequires: %{python_module openapi-schema-validator >= 0.3.2}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python-pathlib2
|
|
||||||
%endif
|
|
||||||
%ifpython2
|
|
||||||
Requires: python-pathlib2
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -61,8 +58,7 @@ OpenAPI 3.0.0 specification. The validator aims to check
|
|||||||
for full compliance with the Specification.
|
for full compliance with the Specification.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n openapi-spec-validator-%{version}
|
%autosetup -p1 -n openapi-spec-validator-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -80,7 +76,7 @@ for full compliance with the Specification.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
|
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
|
||||||
%pytest -rs
|
%pytest -m 'not network'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user