Would a developer-friendly DSL layer for JSON Schema align with the organization’s goals? #1010
shashank-518
started this conversation in
General
Replies: 0 comments
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