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:
@@ -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
Block a user