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

[CDSADAPTERS-2132] Openapi compile: Options input provided in JSON file #16882 #46

Closed

Conversation

Dipto-at-sap
Copy link
Contributor

Added the cds compile --openapi:config-file option to incorporate all the options in a JSON file as some options were inconsistent in different systems. Inline options are also given more precedence than those defined in the configuration file(JSON).

Github issue: https://github.tools.sap/cap/issues/issues/16882
JIRA link: https://jira.tools.sap/browse/CDSADAPTERS-2132

} else if (key === "odata-version") {
result["odataVersion"] = fileContent[key];
} else if (key === "diagram") {
result["diagram"] = fileContent[key] === "true" ? true : false;
Copy link
Collaborator

@jeevitha011 jeevitha011 Oct 8, 2024

Choose a reason for hiding this comment

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

This can be optimized
result["diagram"] = fileContent[key] === "true";

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.

4 participants