diff --git a/docs/openapi_libcore.html b/docs/openapi_libcore.html index 7aba2ef..ebe94cc 100644 --- a/docs/openapi_libcore.html +++ b/docs/openapi_libcore.html @@ -1190,7 +1190,7 @@ jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a diff --git a/poetry.lock b/poetry.lock index dda3381..8be1f07 100644 --- a/poetry.lock +++ b/poetry.lock @@ -43,21 +43,34 @@ wrapt = [ [[package]] name = "attrs" -version = "22.1.0" +version = "22.2.0" description = "Classes Without Boilerplate" category = "main" optional = false -python-versions = ">=3.5" +python-versions = ">=3.6" files = [ - {file = "attrs-22.1.0-py2.py3-none-any.whl", hash = "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c"}, - {file = "attrs-22.1.0.tar.gz", hash = "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6"}, + {file = "attrs-22.2.0-py3-none-any.whl", hash = "sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836"}, + {file = "attrs-22.2.0.tar.gz", hash = "sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99"}, ] [package.extras] -dev = ["cloudpickle", "coverage[toml] (>=5.0.2)", "furo", "hypothesis", "mypy (>=0.900,!=0.940)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "sphinx", "sphinx-notfound-page", "zope.interface"] -docs = ["furo", "sphinx", "sphinx-notfound-page", "zope.interface"] -tests = ["cloudpickle", "coverage[toml] (>=5.0.2)", "hypothesis", "mypy (>=0.900,!=0.940)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "zope.interface"] -tests-no-zope = ["cloudpickle", "coverage[toml] (>=5.0.2)", "hypothesis", "mypy (>=0.900,!=0.940)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins"] +cov = ["attrs[tests]", "coverage-enable-subprocess", "coverage[toml] (>=5.3)"] +dev = ["attrs[docs,tests]"] +docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope.interface"] +tests = ["attrs[tests-no-zope]", "zope.interface"] +tests-no-zope = ["cloudpickle", "cloudpickle", "hypothesis", "hypothesis", "mypy (>=0.971,<0.990)", "mypy (>=0.971,<0.990)", "pympler", "pympler", "pytest (>=4.3.0)", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-mypy-plugins", "pytest-xdist[psutil]", "pytest-xdist[psutil]"] + +[[package]] +name = "backports-cached-property" +version = "1.0.2" +description = "cached_property() - computed once per instance, cached as attribute" +category = "main" +optional = false +python-versions = ">=3.6.0" +files = [ + {file = "backports.cached-property-1.0.2.tar.gz", hash = "sha256:9306f9eed6ec55fd156ace6bc1094e2c86fae5fb2bf07b6a9c00745c656e75dd"}, + {file = "backports.cached_property-1.0.2-py3-none-any.whl", hash = "sha256:baeb28e1cd619a3c9ab8941431fe34e8490861fb998c6c4590693d50171db0cc"}, +] [[package]] name = "black" @@ -577,17 +590,18 @@ files = [ [[package]] name = "openapi-core" -version = "0.16.3" +version = "0.16.4" description = "client-side and server-side support for the OpenAPI Specification v3" category = "main" optional = false python-versions = ">=3.7.0,<4.0.0" files = [ - {file = "openapi_core-0.16.3-py3-none-any.whl", hash = "sha256:669dd9c90a0cdde60e339cd6fc93e5832aa87683e6702c29b5f119ce34fb2c59"}, - {file = "openapi_core-0.16.3.tar.gz", hash = "sha256:688e6a7234fcc5d08e2c2756b2e148983203aaf34ea82fe530e5498737bc2927"}, + {file = "openapi_core-0.16.4-py3-none-any.whl", hash = "sha256:d736ace6373c99e8504c2988a307e665e673572ee43b9223ede79960177006bf"}, + {file = "openapi_core-0.16.4.tar.gz", hash = "sha256:276a18d66657f6f33c415952559349cc203aa9313e753fe03c6b8d2fbde0dea8"}, ] [package.dependencies] +backports-cached-property = ">=1.0.2,<2.0.0" isodate = "*" jsonschema-spec = ">=0.1.1,<0.2.0" more-itertools = "*" @@ -1185,14 +1199,14 @@ files = [ [[package]] name = "types-requests" -version = "2.28.11.5" +version = "2.28.11.6" description = "Typing stubs for requests" category = "dev" optional = false python-versions = "*" files = [ - {file = "types-requests-2.28.11.5.tar.gz", hash = "sha256:a7df37cc6fb6187a84097da951f8e21d335448aa2501a6b0a39cbd1d7ca9ee2a"}, - {file = "types_requests-2.28.11.5-py3-none-any.whl", hash = "sha256:091d4a5a33c1b4f20d8b1b952aa8fa27a6e767c44c3cf65e56580df0b05fd8a9"}, + {file = "types-requests-2.28.11.6.tar.gz", hash = "sha256:8c1b1e6a0b19522b4738063e772dcee82cee1c3646536ccc4eb96f655af2b6c6"}, + {file = "types_requests-2.28.11.6-py3-none-any.whl", hash = "sha256:48b7c06e3dffc1b6359e1888084a2b97f41b6b63f208c571ddb02ddbc6a892e4"}, ] [package.dependencies] @@ -1369,4 +1383,4 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools" [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "9b537282afcb400d02b4e837b4600fc260eb6587fc335680a35f669f6c534d43" +content-hash = "93230e6e1dff03a8e9db610ee29177eb90d7243e97c52f1913f54613520add31" diff --git a/pyproject.toml b/pyproject.toml index 3d86aa4..c3d89f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name="robotframework-openapi-libcore" -version = "1.7.0" +version = "1.7.1" description = "A Robot Framework library to facilitate library development for OpenAPI / Swagger APIs." license = "Apache-2.0" authors = ["Robin Mackaij "] @@ -29,7 +29,6 @@ prance = "^0.22" Faker = ">=11" rstr = "^3" openapi-core = "^0.16" -openapi-spec-validator = "^0.5" [tool.poetry.dev-dependencies] black = "*" diff --git a/src/OpenApiLibCore/openapi_libcore.libspec b/src/OpenApiLibCore/openapi_libcore.libspec index 659a6e4..83f3ec5 100644 --- a/src/OpenApiLibCore/openapi_libcore.libspec +++ b/src/OpenApiLibCore/openapi_libcore.libspec @@ -1,12 +1,12 @@ - -1.7.0 + +1.7.1 <p>Main class providing the keywords and core logic to interact with an OpenAPI server.</p> <p>Visit the <a href="https://github.com/MarketSquare/robotframework-openapi-libcore">library page</a> for an introduction.</p> - + source @@ -117,7 +117,7 @@ - + url @@ -150,7 +150,7 @@ <p>&gt; Note: provided username / password or auth objects take precedence over token based security</p> Perform a request using the security token or authentication set in the library. - + url @@ -164,7 +164,7 @@ <p>Ensure that the (right-most) <span class="name">id</span> of the resource referenced by the <span class="name">url</span> is used by the resource defined by the <span class="name">resource_relation</span>.</p> Ensure that the (right-most) `id` of the resource referenced by the `url` is used by the resource defined by the `resource_relation`. - + url @@ -174,7 +174,7 @@ <p>Perform a GET request on the <span class="name">url</span> and return the list of resource <span class="name">ids</span> from the response.</p> Perform a GET request on the `url` and return the list of resource `ids` from the response. - + url @@ -197,7 +197,7 @@ <p>&gt; Note: applicable UniquePropertyValueConstraint and IdReference Relations are considered before changes to <span class="name">json_data</span> are made.</p> Return `json_data` based on the `dto` on the `request_data` that will cause the provided `status_code` for the `method` operation on the `url`. - + status_code @@ -211,7 +211,7 @@ <p>Returns a version of <span class="name">params, headers</span> as present on <span class="name">request_data</span> that has been modified to cause the provided <span class="name">status_code</span>.</p> Returns a version of `params, headers` as present on `request_data` that has been modified to cause the provided `status_code`. - + valid_url @@ -222,7 +222,7 @@ <p>Raises ValueError if the valid_url cannot be invalidated.</p> Return an url with all the path parameters in the `valid_url` replaced by a random UUID. - + schema @@ -241,7 +241,7 @@ <p>Generate a valid (json-compatible) dict for all the <span class="name">dto_class</span> properties.</p> Generate a valid (json-compatible) dict for all the `dto_class` properties. - + url @@ -263,7 +263,7 @@ <p>Return <span class="name">json_data</span> based on the <span class="name">UniquePropertyValueConstraint</span> that must be returned by the <span class="name">get_relations</span> implementation on the <span class="name">dto</span> for the given <span class="name">conflict_status_code</span>.</p> Return `json_data` based on the `UniquePropertyValueConstraint` that must be returned by the `get_relations` implementation on the `dto` for the given `conflict_status_code`. - + url @@ -273,7 +273,7 @@ <p>Return the endpoint as found in the <span class="name">paths</span> section based on the given <span class="name">url</span>.</p> Return the endpoint as found in the `paths` section based on the given `url`. - + endpoint @@ -287,7 +287,7 @@ <p>Return an object with valid request data for body, headers and query params.</p> Return an object with valid request data for body, headers and query params. - + endpoint @@ -302,7 +302,7 @@ <p>To prevent resource conflicts with other test cases, a new resource is created (POST) if possible.</p> Support keyword that returns the `id` for an existing resource at `endpoint`. - + endpoint