Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a yaml and json schema for no code users #51

Open
KorigamiK opened this issue Apr 9, 2023 · 4 comments
Open

Adding a yaml and json schema for no code users #51

KorigamiK opened this issue Apr 9, 2023 · 4 comments
Assignees

Comments

@KorigamiK
Copy link

I'm loving this project.
Being able to create these graphics in plain yaml is amazing.

What I want to propose (if there isn't already a way) to have the schema for the entire specification
be available.

A schema allows for nice autocomplete/intellisense in many IDE's.

This article
descibes what I mean to say.

I'd love for you to look into this

@cmakler
Copy link
Owner

cmakler commented Aug 6, 2023

Hi! Sorry, I've never really used Issues in Github, so I don't look here...but I should, this is a great suggestion and would be very helpful!

@cmakler cmakler self-assigned this Aug 6, 2023
@cmakler
Copy link
Owner

cmakler commented Aug 6, 2023

So, it would be super nice to be able to generate this automatically from the TypeScript interface definitions. For example, this file has the definition of a GraphObject (a general class of things on a graph), while this file has the definition of a Point, which is a type of GraphObject. It would, in short, be nice if there were a utility designed to take these TypeScript definitions and convert them into a Yaml/JSON schema. Do you know if such a thing exists?

@KorigamiK
Copy link
Author

This would be cool, a quick Google search led me to find these:

I think both of these could be chained together or maybe one of them is enough. Let me know if you start working on this, I would be interested to contribute here.

@cmakler
Copy link
Owner

cmakler commented Aug 6, 2023 via email

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

No branches or pull requests

2 participants