Skip to content

Content annotation validation#27

Closed
cursor[bot] wants to merge 1 commit intofeat/draft-06from
cursor/content-annotation-validation-0123
Closed

Content annotation validation#27
cursor[bot] wants to merge 1 commit intofeat/draft-06from
cursor/content-annotation-validation-0123

Conversation

@cursor
Copy link

@cursor cursor bot commented Feb 15, 2026

Add setter-time validation for contentEncoding() and contentMediaType() to ensure consistent fail-fast behavior for Draft-07+ features.


…aType() methods

Both methods now call validateFeatureSupport() before setting values,
making them consistent with contentSchema() and other Draft-07 feature
setters (readOnly, writeOnly, comment). This ensures immediate validation
when these methods are called on incompatible schema versions (e.g. Draft-06)
rather than deferring errors until toArray() is called.
@cursor
Copy link
Author

cursor bot commented Feb 15, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@tymondesigns tymondesigns deleted the cursor/content-annotation-validation-0123 branch February 15, 2026 11:23
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