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

Allow disabling slice flag separator #1582

Merged
merged 3 commits into from
Nov 12, 2022
Merged

Allow disabling slice flag separator #1582

merged 3 commits into from
Nov 12, 2022

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Nov 11, 2022

What type of PR is this?

  • feature

What this PR does / why we need it:

Allows to disable SliceFlagSeparator by setting DisableSliceFlagSeparator = true
Useful when processing JSON values as described here #1134 (comment) and here #1134 (comment)

Which issue(s) this PR fixes:

Fixes #1134 and specifically #1134 (comment)

Special notes for your reviewer:

(fill-in or delete this section)

Testing

New unit test TestFlagSplitMultiValues_Disabled

Release Notes

Added support for disabling comma `,` based SliceFlag separator 

@feedmeapples feedmeapples requested a review from a team as a code owner November 11, 2022 02:15
@feedmeapples feedmeapples marked this pull request as draft November 11, 2022 02:20
@feedmeapples feedmeapples marked this pull request as ready for review November 11, 2022 02:31
@feedmeapples feedmeapples changed the title Allow disabling SliceFlag separator altogether Allow disabling Slice Flag separator Nov 11, 2022
@feedmeapples feedmeapples changed the title Allow disabling Slice Flag separator Allow disabling slice flag separator Nov 11, 2022
@dearchap dearchap changed the base branch from main to v2-maint November 11, 2022 12:35
@dearchap dearchap changed the base branch from v2-maint to main November 11, 2022 12:35
@dearchap
Copy link
Contributor

@feedmeapples Just FYI this is going to be merged into main branch which is v3 right now and not v2. Is that fine ?

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.

v2 feature: Comma separated slice flags
2 participants