Query parameter decorator may use null
`@validation.request_query_schema(None)` is valid. Change-Id: Ie4c8af39861089515eb001638a679cbd6c457fb8
This commit is contained in:
2 changed files with 18 additions and 16 deletions
@@ -768,14 +768,15 @@ class OpenStackServerSourceBase:
),
)
for data, min_ver, max_ver in so:
self.process_query_parameters(
openapi_spec,
operation_spec,
path_resource_names,
data,
min_ver,
max_ver,
)
if data:
self.process_query_parameters(
openapi_spec,
operation_spec,
path_resource_names,
data,
min_ver,
max_ver,
)
# if body_schemas or mode == "action":
if method in ["PUT", "POST", "PATCH"]:
self.process_body_parameters(
@@ -407,14 +407,15 @@ class KeystoneGenerator(OpenStackServerSourceBase):
),
)
for data, min_ver, max_ver in so:
self.process_query_parameters(
openapi_spec,
operation_spec,
path_resource_names,
data,
min_ver,
max_ver,
)
if data:
self.process_query_parameters(
openapi_spec,
operation_spec,
path_resource_names,
data,
min_ver,
max_ver,
)
if method in ["PUT", "POST", "PATCH"]:
self.process_body_parameters(
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.