Skip to content

fix(konsistent): represent exact TypeScript type references as string alternatives to JSON Schema shapes - #96

Merged
felixarntz merged 3 commits into
mainfrom
fix-typecript-type-references-in-json-schema
Sep 2, 2026
Merged

fix(konsistent): represent exact TypeScript type references as string alternatives to JSON Schema shapes#96
felixarntz merged 3 commits into
mainfrom
fix-typecript-type-references-in-json-schema

Conversation

@felixarntz

Copy link
Copy Markdown
Collaborator

Pull Request Description

TypeScript type references in constant and type schemas overloaded JSON Schema's type property and rejected interpolated references. This separates exact TypeScript references from JSON Schema objects so references can use the same templates as other predicate strings.

Relevant technical choices

  • Represent exact TypeScript references as strings while retaining JSON Schema objects for scalar constraints.
  • Resolve templates before exact annotation matching across type and constant declaration/export predicates.
  • Validate placeholders used in array item and object property type references.
  • Regenerate published schemas and update unit, generated-schema, and e2e coverage.

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated
  • A changeset has been added (run pnpm changeset in the project root if package files were modified)
  • I have reviewed this pull request (self-review)

@felixarntz
felixarntz merged commit 4e8baa6 into main Sep 2, 2026
8 checks passed
@felixarntz
felixarntz deleted the fix-typecript-type-references-in-json-schema branch September 2, 2026 16:29
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.

1 participant