Skip to content

sds-go: replace ScanWithValidation with ScanWithOptions - #372

Merged
vinckama merged 1 commit into
mainfrom
vincent.roy/3849
Jul 23, 2026
Merged

sds-go: replace ScanWithValidation with ScanWithOptions#372
vinckama merged 1 commit into
mainfrom
vincent.roy/3849

Conversation

@vinckama

@vinckama vinckama commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace ScanWithValidation / ScanEventsMapWithValidation with ScanWithOptions / ScanEventsMapWithOptions driven by ScanCallOptions (ValidateMatching, Metadata).
  • Wire the native scan_metadata_json argument through the Go FFI (NULL when metadata is empty) (missing in Add scan metadata)
  • Add TestScanWithOptions that enables match validation via CustomHttp and asserts MatchStatus is populated.

@vinckama
vinckama force-pushed the vincent.roy/3849 branch 6 times, most recently from 5262083 to 6123775 Compare July 23, 2026 17:33
@vinckama vinckama changed the title sds-go: add ScanWithValidation regression test sds-go: replace ScanWithValidation with ScanWithOptions Jul 23, 2026
Native scan() already takes scan_metadata_json; the Go bindings still
called the old 7-arg signature. Expose ScanCallOptions / ScanWithOptions
(and the map equivalents), pass metadata or NULL into C.scan, and drop
ScanWithValidation / ScanEventsMapWithValidation.

TestScanWithOptions configures a CustomHttp third_party_active_checker
and asserts MatchStatus is set when ValidateMatching is enabled.
@vinckama
vinckama marked this pull request as ready for review July 23, 2026 17:40
@vinckama
vinckama requested a review from a team as a code owner July 23, 2026 17:40
@vinckama
vinckama merged commit ee17bf7 into main Jul 23, 2026
4 checks passed
@vinckama
vinckama deleted the vincent.roy/3849 branch July 23, 2026 17:49
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