Repository navigation
feat: add x-semantic-type annotation (long-text) - #11
Merged
Merged
Conversation
Carry the x-semantic-type vendor annotation onto string model definitions so consumers can select a control JSON Schema has no keyword for. Only recognized values (currently long-text) are surfaced; an unknown value is dropped so a consumer never receives a hint it can't act on. enum takes precedence; the annotation is ignored on non-string types.
Copy semanticType from the compiled definition onto the built model node (alongside enumValues) so renderers can select a control. Typed in index.d.ts.
Add x-semantic-type to the §3 annotations table plus a short subsection covering its recognized value (long-text), string-only scope, enum precedence, and unknown-value fallback — following the spec's per-keyword table-and-example pattern.
This reverts commit 3907529.
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 29, 2026
# [0.2.0](v0.1.2...v0.2.0) (2026-07-29) ### Features * add x-semantic-type annotation (long-text) ([#11](#11)) ([8f6bfc9](8f6bfc9))
|
🎉 This PR is included in version 0.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
x-semantic-type, a vendor annotation that declares the semantic kind of astringfield. First recognized value:long-text(long-form, multi-line text).node.semanticTypefor recognized values only.enumtakes precedence.docs/schema-spec.md(§3, Vendor annotations).Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: