Skip to content

feat(schema-dsl): add @Resource, @field, @id decorators #10508

Merged
runspired merged 1 commit intomainfrom
resource-dsl
Apr 20, 2026
Merged

feat(schema-dsl): add @Resource, @field, @id decorators #10508
runspired merged 1 commit intomainfrom
resource-dsl

Conversation

@MehulKChaudhari
Copy link
Copy Markdown
Contributor

  • Adds the @warp-drive/schema-dsl package with @resource, @field, and @id decorators for defining schemas as decorated TypeScript classes
  • Decorators are no-ops at runtime a Vite plugin (schemaDSL()) compiles them at build time via Babel AST into
    ResourceSchema objects exposed through a virtual:warp-drive-schemas module
  • Supports both modern (Polaris) and legacy schema output formats
  • Includes tests and initial documentation

@MehulKChaudhari MehulKChaudhari self-assigned this Apr 1, 2026
@github-project-automation github-project-automation Bot moved this to needs triage in EmberData Apr 1, 2026
@runspired runspired added 🎯 canary PR is targeting canary (default) 🏷️ feat This PR introduces a new feature labels Apr 1, 2026
Comment thread guides/the-manual/schemas/dsl/index.md
Co-authored-by: Mehul Kiran Chaudhari <[email protected]>
@runspired runspired merged commit f36a93a into main Apr 20, 2026
19 of 20 checks passed
@runspired runspired deleted the resource-dsl branch April 20, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎯 canary PR is targeting canary (default) 🏷️ feat This PR introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants