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

feat: add OData Version to options #71

Merged
merged 4 commits into from
Dec 4, 2023
Merged

Conversation

kyc3
Copy link
Contributor

@kyc3 kyc3 commented Nov 15, 2023

Hey there,

I found an issue when using @cds-dk version 7.2.0 or later in my project.
@cds-dk offers the parameter odata-version which, if left blank, defaults to '4.01'. However if your OData service is still on version 4.0 (which should be the case for most projects), OData functions would will not be compiled correctly. Odata functions can be called without parentheses in OData version 4.01 but not in 4.0.

This PR adds an the odataVersion parameter to the options, so that projects can specify which OData version should be used for the OpenAPI compilation.

Feel free to suggest any changes.

Kind regards,
Yannick

@kyc3
Copy link
Contributor Author

kyc3 commented Dec 4, 2023

@chgeo did you have a chance to take a look? I think the tests are failing are unrelated to my change.

Copy link
Owner

@chgeo chgeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay.
I have updated all underlying cds libs and based your PR on top. Now, all tests run successfully.

Thanks for the contribution!

@chgeo chgeo merged commit 8d26473 into chgeo:main Dec 4, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants