Generates incorrect dynamic path with integer
parameters
#1930
Labels
bug
Something isn't working
good first issue
Straightforward problem, solvable for first-time contributors without deep knowledge of the project
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Description
Using the
--path-params-as-types
flag, the library doesn't generate thenumber
type for OpenAPIinteger
type dynamic path parameters. It leaves it asinteger
, which is an invalid type in TypeScript.openapi-typescript
7.4.0
20.17.0
Pop!_OS, kernel 6.9.3-76060903
Reproduction
Generate with the
--path-params-as-types
flag off of this example:Result (omitting unrelated fields):
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: