You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Our API uses string as page parameters, such as base64 encoded global ids, however when generating infinite queries where the type of pageParam is not a number within the schema
To Reproduce
Generate schemas where the page types are strings using openapi-rq --pageParam nextPageKey --nextPageParam nextPageKey -i specification.json -c axios
See the generated queries/infiniteQueries.ts file for type error
OpenAPI spec file
Would like to keep private
Expected behavior
If the schema defines the page token as a string then the generated types should also require a string.
Screenshots
Type Error:
Schema:
OS: macOS
Version 1.6.0
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Our API uses string as page parameters, such as base64 encoded global ids, however when generating infinite queries where the type of pageParam is not a number within the schema
To Reproduce
openapi-rq --pageParam nextPageKey --nextPageParam nextPageKey -i specification.json -c axios
queries/infiniteQueries.ts
file for type errorOpenAPI spec file
Would like to keep private
Expected behavior
If the schema defines the page token as a string then the generated types should also require a string.
Screenshots
Type Error:
Schema:
Additional context
N/A
The text was updated successfully, but these errors were encountered: