Currently the generated api.ts HttpClient class doesn't support responses that return 204.
It would be good for it to support that when a openapi spec response has no body defined.
path:
/customers/:customerId
delete:
parameters:
- name: customerId
in: path
required: true
schema:
type: integer
description: Customer ID
responses:
'204':
description: Customer removed
This means also if there's no body,
- the current data or error HttpResponse needs to handle success cases where data is not returned, such as by returning the
Response.ok field, for use for the functions.ts method
- to not call
response[responseFormat]()
- to handle typescript generics in a way that allows nullable response types
Currently the generated api.ts HttpClient class doesn't support responses that return 204.
It would be good for it to support that when a openapi spec response has no body defined.
This means also if there's no body,
Response.okfield, for use for the functions.ts methodresponse[responseFormat]()