Closed
Description
When the server returns null (which is a valid thing, because e.g. has no payload to send) openapi-react-query handles that as an error, even though the server returned with 200.
The reason behind this is https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-react-query/src/index.ts#L118-L121, here this should be:
if (error || data === undefined) {
throw error;
}
return data;