fix: use OData V4 path for OpenAPI server URL if no protocol is set to match @sap/cds default behavior - #175
Conversation
…o match @sap/cds default behavior Signed-off-by: Lukas Schwabe <lukas.schwabe@amag.ch>
|
Hi @cronossclk , thank you for reporting this behaviour and for providing a fix! I thus propose the following addition to your PR:
Users can then restore the old behaviour by providing Best, |
|
Sorry, have been on vacation, will adjust :) |
|
no worries, not at all urgent, just wanted to complete the review properly. :) |
…otocol config option
Co-authored-by: Daniel O'Grady <103028279+daogrady@users.noreply.github.com>
Before: When OpenAPI generates a document for an OData V4 service, it may advertise the REST base path:
After: The generated
servers.urlmatches the service’s OData V4 runtime endpoint:This affects only the URL advertised in the OpenAPI document. It does not change:
@path--openapi:urlvaluesThis PR fixes #174
Test results: