Skip to content

[dynamic control] step 1 in transition to simpler validation#2703

Merged
trask merged 1 commit intoopen-telemetry:mainfrom
jackshirazi:policy11
Mar 20, 2026
Merged

[dynamic control] step 1 in transition to simpler validation#2703
trask merged 1 commit intoopen-telemetry:mainfrom
jackshirazi:policy11

Conversation

@jackshirazi
Copy link
Copy Markdown
Contributor

Description:

first step in transitioning to to simpler validation

Existing Issue(s):

#2546

Testing:

Already present but will be simpler along with simpler validation

Documentation:

docs will be updated after migration is complete

Outstanding items:

several more PRs to come to migrate from json to jsonkeyvalue and refactor of providers to simplify validation, I'm trying to keep the PRs as small as possible which means some duplication in the meantime until complete

@jackshirazi jackshirazi requested a review from a team as a code owner March 19, 2026 15:41
Copilot AI review requested due to automatic review settings March 19, 2026 15:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Introduces a transitional validation entry-point that accepts parsed configuration sources to support the migration from JSON-only validation toward simpler validation flows (issue #2546).

Changes:

  • Adds a default validate(SourceWrapper) method to PolicyValidator to validate parsed sources.
  • Bridges existing validate(String) / validateAlias(String, String) logic for JsonSourceWrapper and KeyValueSourceWrapper.

You can also share your feedback on Copilot code review. Take the survey.

@github-actions github-actions Bot requested a review from LikeTheSalad March 19, 2026 16:08
@trask trask added this pull request to the merge queue Mar 20, 2026
Merged via the queue into open-telemetry:main with commit 5075fa2 Mar 20, 2026
24 of 25 checks passed
@jackshirazi jackshirazi deleted the policy11 branch April 1, 2026 13:17
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