Skip to content

CI: Validate embedded schema examples to catch logic regressions #21

Description

@ptiper

Is your feature request related to a problem? Please describe.

Tracking issue to implement the CI safeguard proposed by @amithanda in Universal-Commerce-Protocol/ucp#429 (comment).

Our current ucp-schema lint job checks syntax but misses schema logic overlap for discovery and profile documents. To programmatically prevent regressions like the ones fixed in PR #429, we could validate embedded JSON Schema examples directly during the lint phase.

Refer to Amit's comment linked above for the complete technical deep dive and sample payloads.

Describe the solution you'd like

Tasks

  • Update ucp-schema lint to validate all entries in examples arrays, failing the build on errors.
  • Enforce a lint rule requiring embedded examples on primary discovery schemas.
  • Backfill examples into the base schemas to cover standard profile variations.

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions