Would a developer-friendly DSL layer for JSON Schema align with the organization’s goals? #1011
Unanswered
shashank-518
asked this question in
Q&A
Replies: 1 comment
-
|
This already exists (typebox), but feel free to build whatever you think would be useful if you don't think that fits your needs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I recently proposed a GSoC idea about building a developer-friendly DSL (Domain-Specific Language) layer for defining JSON Schemas in the Node.js/TypeScript ecosystem.
The idea is not to modify the JSON Schema specification itself, but to build a thin abstraction layer that:
Example:
Instead of writing raw JSON Schema:
{
"type": "object",
"required": ["name"],
"properties": {
"name": { "type": "string" }
}
}
A developer could write something like:
const User = schema.object({
name: schema.string().required()
})
Which internally generates the equivalent JSON Schema.
Before refining this idea further, I wanted to ask:
I’d really appreciate feedback so I can align my efforts with the project’s priorities.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions