Skip to content

Fix odata-cli exclusions#364

Merged
habbes merged 1 commit intoOData:masterfrom
gregwinterstein:fix/341-odata-cli-ignore-exclude-schema-types
Aug 18, 2023
Merged

Fix odata-cli exclusions#364
habbes merged 1 commit intoOData:masterfrom
gregwinterstein:fix/341-odata-cli-ignore-exclude-schema-types

Conversation

@gregwinterstein
Copy link
Copy Markdown
Contributor

As noted in #341 the exclude-schema-types option (and other exclusion options) are ignored by the odata-cli.
This is because the option is described as a comma-separated list but implemented as a list.

This change converts the exclusion options into strings and splits the strings on commas when passing the exclusions into the generators.

This fixes issue #341

@gregwinterstein gregwinterstein force-pushed the fix/341-odata-cli-ignore-exclude-schema-types branch from 805c25e to 4736b39 Compare June 15, 2023 18:54
Copy link
Copy Markdown
Contributor

@habbes habbes left a comment

Choose a reason for hiding this comment

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

Any tests?

@gregwinterstein
Copy link
Copy Markdown
Contributor Author

Any tests?

@habbes The current tests for the command-line are marked as [Ignore("to be removed")] and use the CodeGenWithT4TemplateFromCommandline method. If CodeGenWithT4TemplateFromCommandline is still available and is not deprecated, tests could be created to pass command-line parameters and validate the resulting code.

@KenitoInc
Copy link
Copy Markdown
Contributor

@gregwinterstein Can you rebase the PR?

@gregwinterstein gregwinterstein force-pushed the fix/341-odata-cli-ignore-exclude-schema-types branch from 4736b39 to 5484bc3 Compare August 11, 2023 16:01
@gregwinterstein
Copy link
Copy Markdown
Contributor Author

@gregwinterstein Can you rebase the PR?

@KenitoInc I have rebased the pull request as requested.

@habbes habbes merged commit de654bc into OData:master Aug 18, 2023
gregwinterstein added a commit to gregwinterstein/ODataConnectedService that referenced this pull request Aug 22, 2023
gathogojr pushed a commit to gregwinterstein/ODataConnectedService that referenced this pull request Sep 25, 2023
gregwinterstein added a commit to gregwinterstein/ODataConnectedService that referenced this pull request Oct 2, 2023
gregwinterstein added a commit to gregwinterstein/ODataConnectedService that referenced this pull request Mar 11, 2024
gregwinterstein added a commit to gregwinterstein/ODataConnectedService that referenced this pull request Mar 26, 2024
@gregwinterstein gregwinterstein deleted the fix/341-odata-cli-ignore-exclude-schema-types branch April 8, 2024 18:08
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.

3 participants