make sort_key and sort_dir in neutron array

Neutron allows sort_key and sort_dir to be arrays. Unfortunately there
is no easy way how to also cover requirements that when they are their
count should pair, so leave it out for now.
Change-Id: Ie60f78ebfbf0ed615adc08ed4055f1ace7ca5b2e
This commit is contained in:
Artem Goncharov
2024年11月18日 10:24:32 +01:00
parent 5527731e17
commit f1194e369d

View File

@@ -298,15 +298,25 @@ class NeutronGenerator(OpenStackServerSourceBase):
name="sort_key",
location="query",
description="Sort results by the attribute. This is an optional feature and may be silently ignored by the server.",
type_schema=TypeSchema(type="string"),
type_schema=TypeSchema(
type="array", items={"type": "string"}
),
style="form",
explode=True,
),
"sort_dir": ParameterSchema(
name="sort_dir",
location="query",
description="Sort direction. This is an optional feature and may be silently ignored by the server.",
type_schema=TypeSchema(
type="string", enum=["asc", "desc"]
type="array",
items={
"type": "string",
"enum": ["asc", "desc"],
},
),
style="form",
explode=True,
),
},
"schemas": {},
Reference in New Issue
openstack/codegenerator
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.

The note is not visible to the blocked user.