diff --git a/docs/openapi_libcore.html b/docs/openapi_libcore.html index e44fb33..2f498b3 100644 --- a/docs/openapi_libcore.html +++ b/docs/openapi_libcore.html @@ -1192,7 +1192,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/pyproject.toml b/pyproject.toml index c6c77c9..0211090 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name="robotframework-openapi-libcore" -version = "1.6.2" +version = "1.6.3" description = "A Robot Framework library to facilitate library development for OpenAPI / Swagger APIs." license = "Apache-2.0" authors = ["Robin Mackaij "] diff --git a/src/OpenApiLibCore/openapi_libcore.libspec b/src/OpenApiLibCore/openapi_libcore.libspec index 1d72e87..9003d3f 100644 --- a/src/OpenApiLibCore/openapi_libcore.libspec +++ b/src/OpenApiLibCore/openapi_libcore.libspec @@ -1,6 +1,6 @@ - -1.6.2 + +1.6.3 <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> @@ -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 @@ -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 diff --git a/src/OpenApiLibCore/openapi_libcore.py b/src/OpenApiLibCore/openapi_libcore.py index a9a1356..dc5ca2a 100644 --- a/src/OpenApiLibCore/openapi_libcore.py +++ b/src/OpenApiLibCore/openapi_libcore.py @@ -793,6 +793,7 @@ def get_parameter_data( for parameter in parameters: parameter_name = parameter["name"] parameter_schema = parameter["schema"] + parameter_schema = resolve_schema(parameter_schema) relations = [ r for r in parameter_relations if r.property_name == parameter_name ] @@ -864,6 +865,7 @@ def get_dependent_id(property_name: str, operation_id: str) -> Optional[str]: for property_name in schema.get("properties", []): value_schema = schema["properties"][property_name] + value_schema = resolve_schema(value_schema) property_type = value_schema["type"] if constrained_values := get_constrained_values(property_name): # do not add properties that are configured to be ignored