openapi-client-axios icon indicating copy to clipboard operation
openapi-client-axios copied to clipboard

Cant use URL definition when the service has sloppy headers.

Open dogmatic69 opened this issue 4 months ago • 0 comments

I'm trying to use a service from yaml def but the server responds with octet-stream so openapi-client-axios fails. Due to this I'll have to manually fetch it, parse and pass in the object. Perhaps could just check the url ends in y?ml or pass in a config yaml: true or similar to ignore any headers.

Content-Type: application/octet-stream

affected code from what I can tell.

https://github.com/openapistack/openapi-client-axios/blob/main/packages/openapi-client-axios/src/client.ts#L208C25-L208C68

dogmatic69 avatar Mar 06 '24 21:03 dogmatic69