Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use URL definition when the service has sloppy headers. #180

Open
dogmatic69 opened this issue Mar 6, 2024 · 0 comments
Open

Cant use URL definition when the service has sloppy headers. #180

dogmatic69 opened this issue Mar 6, 2024 · 0 comments

Comments

@dogmatic69
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant