We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
The generated TS definitions don't contain any path/query parameters.
export interface operations { "TripRoutes.flights": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** removed **/ }; }; }
OpenAPI Schema:
{ "openapi": "3.1.0", "servers": [ { "url": "http://localhost:8080/api" } ], "tags": [ { "name": "TripRoutes" }, ], "paths": { "/flights": { "get": { "operationId": "TripRoutes.flights", "tags": [ "TripRoutes" ], "parameters": [ { "name": "sourceAirports", "required": true, "in": "QUERY", "schema": { "type": "object", "properties": { "additionals": { "type": "array", "items": { "type": "string" } }, "code": { "type": "string" }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } }, "required": [ "code", "name" ] } }, { "name": "destinationAirports", "required": true, "in": "QUERY", "schema": { "type": "object", "properties": { "additionals": { "type": "array", "items": { "type": "string" } }, "code": { "type": "string" }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } }, "required": [ "code", "name" ] } }, { "name": "adults", "required": true, "in": "QUERY", "schema": { "type": "integer", "format": "int32" } }, { "name": "children", "required": true, "in": "QUERY", "schema": { "type": "integer", "format": "int32" } }, { "name": "infants", "required": true, "in": "QUERY", "schema": { "type": "integer", "format": "int32" } }, { "name": "startDate", "required": true, "in": "QUERY", "schema": { "type": "string" } }, { "name": "endDate", "required": true, "in": "QUERY", "schema": { "type": "string" } }, { "name": "direct", "required": false, "in": "QUERY", "schema": { "type": "boolean" } } ] } } } }
Reproduction
Just download latest lib, plug my schema and run the command.
Checklist
The text was updated successfully, but these errors were encountered:
Can reproduce with this schema. The issue is that "QUERY" is uppercase. Lower-casing to " query".
Note that the parameter object in field needs to be lower case: https://swagger.io/specification/#parameter-object
in
So this is not a bug per se, but arguably, the failure behavior could be better (report bad in, rather than ignore).
Sorry, something went wrong.
No branches or pull requests
Description
The generated TS definitions don't contain any path/query parameters.
OpenAPI Schema:
Reproduction
Just download latest lib, plug my schema and run the command.
Checklist
The text was updated successfully, but these errors were encountered: