Open StevenXL opened 2 weeks ago
Hey @StevenXL
We had a similar discussion some time ago which led to the conclusion that for the moment, a custom implementation of our MonadHttp
is sufficient to achieve what you are asking for, see this comment for a great example given by a member of the community.
I think this should work for you as well, let me know if you disagree, thank you.
Some APIs require a specific header to be sent with all requests. For example, in Recurly:
// https://recurly.com/developers/api/v2021-02-25/#section/Getting-Started/Versioning
This is not supported by the OpenAPI Specification, as far as I can tell. However, would it be able to add this feature as an option to the generator?
Thinking off the top of my head, we could expand the config data type with a new field of type
Request -> Request
.createBaseRequest
can do what it currently does, plus that new field. The new field could be field in with user-supplied code, maybe via the configuration file.