Closed ricky-bok-privitar closed 1 year ago
Hi, given some parameters in the query, the types in the parameters seem to be incorrect:
Given the following types:
createX: { parameters: { query: { includeTags?: true | false; };
When we try to create the fetch command:
fetcher .path('/api/v1/x') .method('post') .create({ includeTags: true, // The type is true | 1, when it should be a boolean })
I suspect it has something to do with this line here: https://github.com/ajaishankar/openapi-typescript-fetch/blob/2e0d66e8e5c7ef74dd406c810b8b2b61f5f5ae1e/src/types.ts#L120
Is anyone else seeing this issue?
Hi, given some parameters in the query, the types in the parameters seem to be incorrect:
Given the following types:
When we try to create the fetch command:
I suspect it has something to do with this line here: https://github.com/ajaishankar/openapi-typescript-fetch/blob/2e0d66e8e5c7ef74dd406c810b8b2b61f5f5ae1e/src/types.ts#L120
Is anyone else seeing this issue?