Skip to content

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

@dogmatic69

Description

@dogmatic69

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions