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
Change petstore.yaml and rename components/schemas/Error to components/schemas/ErrorX (make sure to also change the name of the component in the bottom of the file)
yarn generate:swr
See that generated code is export type ListPetsQueryError = AxiosError<ErrorX>, which is correct, but ErrorX is not imported from ./model
What happens?
Compile error, it seems like it used to import the ts default Error interface instead of the actual error model.
What were you expecting to happen?
The error model should be imported
Any logs, error output, etc?
What versions are you using?
Package Version: 6.25.0
The text was updated successfully, but these errors were encountered:
AllieJonsson
changed the title
SWR/React Query: Custom error type model is not imported
SWR/React Query: Custom error type model is not imported when mocking: true
Mar 20, 2024
AllieJonsson
changed the title
SWR/React Query: Custom error type model is not imported when mocking: true
SWR/React Query: Custom error type model is not imported when mock: true
Mar 20, 2024
What are the steps to reproduce this issue?
components/schemas/Error
tocomponents/schemas/ErrorX
(make sure to also change the name of the component in the bottom of the file)export type ListPetsQueryError = AxiosError<ErrorX>
, which is correct, but ErrorX is not imported from ./modelWhat happens?
Compile error, it seems like it used to import the ts default Error interface instead of the actual error model.
What were you expecting to happen?
The error model should be imported
Any logs, error output, etc?
What versions are you using?
Package Version: 6.25.0
The text was updated successfully, but these errors were encountered: