Open jahvi opened 11 months ago
After some debugging looks like the problem was that the SDK was lowercasing the headers but the spec expected it as mixed case (eg: x-authorization vs X-Authorization), so I worked around this by lowercasing all my headers in my spec.
I'm not sure if it's still an issue though, headers should be case insensitive so it should work either way.
This is still an issue when using a third party spec. None of the headers get sent if their spec has the headers as anything but lower case.
After installing my opneapi definitions:
My TS definitions seem to be generated just fine, this request looks correct on my TS files:
However looking at my API server the X-Review-Provider-Key is not being sent at all, also the X-Authorization header gets ignored as well even though the TS definitions allow it. Making the request through our documentation page in readme.io does work fine though.
Am I doing something wrong or is it a bug?
Edit: I get the same issue generating the SDK with the latest v7 beta branch.