diff --git a/codegenerator/openapi/neutron.py b/codegenerator/openapi/neutron.py index 8739545..deb59b0 100644 --- a/codegenerator/openapi/neutron.py +++ b/codegenerator/openapi/neutron.py @@ -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": {},