Skip to content

sds-go: add Precedence to RegexRuleConfig - #384

Merged
vinckama merged 1 commit into
mainfrom
vincent.roy/sds-go-precedence
Aug 28, 2026
Merged

sds-go: add Precedence to RegexRuleConfig#384
vinckama merged 1 commit into
mainfrom
vincent.roy/sds-go-precedence

Conversation

@vinckama

@vinckama vinckama commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The Rust engine already tie-breaks overlapping matches of equal mutation priority with Catchall < Generic < Specific (default Specific), but the Go bindings never sent that field over FFI. Go callers therefore could not set rule precedence through this package.

Needed for DATASEC-203.

The Rust engine already tie-breaks overlapping matches of equal
mutation priority with Catchall < Generic < Specific (default Specific),
but the Go bindings never sent that field over FFI. Go callers therefore
could not set rule precedence through this package.

Add the same string Precedence type used in sds-shared-library
(Specific, Generic, Catchall) on RegexRuleConfig. omitempty keeps
existing rules on the Rust default.

For DATASEC-203

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@vinckama
vinckama marked this pull request as ready for review August 27, 2026 16:23
@vinckama
vinckama requested a review from a team as a code owner August 27, 2026 16:23
@vinckama
vinckama merged commit 1d19784 into main Aug 28, 2026
5 checks passed
@vinckama
vinckama deleted the vincent.roy/sds-go-precedence branch August 28, 2026 16:21
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