Skip to content

Implementing YAML as alternative format for Schema source#45

Open
trochumski wants to merge 1 commit into
lovasoa:mainfrom
trochumski:main
Open

Implementing YAML as alternative format for Schema source#45
trochumski wants to merge 1 commit into
lovasoa:mainfrom
trochumski:main

Conversation

@trochumski

Copy link
Copy Markdown

while composing JSON Schema using JSON seems a good idea
I find that in long run (with big schemas) it become less readable

YAML has been created to be human friendly - seem a good alternative

Comment thread package.json
"clsx": "^2.1.1",
"lucide-react": "^1.8.0",
"tailwind-merge": "^3.3.1",
"yaml": "^2.9.0",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just the yaml parser is 30% the size of this entire package...

Maybe you could implement this by making the schema parser pluggable instead ? Then just show yaml as an example in the docs. This would be a smaller PR, just letting the user pass schemaToSource, sourceToSchema and the syntax coloring to use in monaco

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.

2 participants