Skip to content

fix(schema): replace inline property-type enums with $ref in brand cluster - #6346

Open
garvitkaushik-123 wants to merge 1 commit into
adcontextprotocol:mainfrom
garvitkaushik-123:fix/brand-property-type-ref
Open

fix(schema): replace inline property-type enums with $ref in brand cluster#6346
garvitkaushik-123 wants to merge 1 commit into
adcontextprotocol:mainfrom
garvitkaushik-123:fix/brand-property-type-ref

Conversation

@garvitkaushik-123

Copy link
Copy Markdown
Contributor

Closes #6330

Summary

  • Replace inline property.type enum in brand.json with $ref to enums/property-type.json, matching the pattern already used by core/property.json
  • Apply the same fix to verify-brand-claim-request.json and verify-brand-claims-request.json which had identical inline copies
  • Adds linear_tv and ai_assistant to the brand property-type surface as a consequence of pointing at the canonical 10-value enum
  • Update brand-json.mdx docs to list all 10 property types and reference the canonical enum file

Root cause

brand.json (and the two verify-brand-claim schemas) defined property.type with a hardcoded 8-value enum instead of using $ref. When linear_tv and ai_assistant were added to enums/property-type.json, the brand cluster was missed. The inline copy drifted.

Validation

  • node --test tests/brand-property-type-ref.test.cjs — 4/4 pass: brand.json accepts all 10 property types, rejects invalid type, both verify-brand-claim variants accept the new values
  • npm run typecheck — clean
  • Full pre-commit suite (5700+ tests) — clean
  • Pre-push hooks (changeset policy, version sync, docs validation) — all pass

…uster

brand.json, verify-brand-claim-request.json, and verify-brand-claims-request.json
defined property.type as an inline 8-value enum that diverged from
enums/property-type.json (10 values) after PR adcontextprotocol#6280 added linear_tv and
ai_assistant. Swap inline enums for $ref to the canonical enum so the brand
cluster stays in sync.

Update the property types list in docs/brand-protocol/brand-json.mdx to include
linear_tv and ai_assistant. Add targeted schema validation tests.

Closes adcontextprotocol#6330
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.

brand.json property.type uses inline enum missing linear_tv and ai_assistant (diverged from enums/property-type.json)

1 participant