tprasadtp / ubuntu-post-install

Effortless, Flexible and Simple Post Install Script for Ubuntu, Linux Mint, Debian & their derivatives
GNU General Public License v3.0
83 stars 31 forks source link

Find a good YAML schema form #51

Open baruchiro opened 3 years ago

baruchiro commented 3 years ago

With YAML Schema, it is easy to know which data we can write.

Actually, for JSON Schema there are a lot of auto generator engines for creating a form to build the JSON.

I think if someone knows about a generator for YAML it will be good.

Examples:

You know what? Maybe we can use a JSON builder and convert the output to YAML?

tprasadtp commented 3 years ago

Its a good idea. But is it worth the effort? no offense, but you can easily use sample yaml provided as a template and just edit it. most effort would be writing the apt and other package/urls. even with the forms this step will still be manual. I wont be adding this feature, but if you have javascript experience and are willing to work on it I will be happy to accept any contributions.

baruchiro commented 3 years ago

I also prefer to not invest a lot of time and maintenance for that.

I think we can define a schema for YAML/JSON, and use an existing tool that auto-generating a UI to create it.

So maybe as I said, use one of the JSON tools, and convert the JSON to YAML.

But you see the time takes me to answer? I don't think I will have time soon to do that.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

TejasAvinashShetty commented 2 years ago

Keeping this alive

schmunk42 commented 1 year ago

@baruchiro You wrote in the initial comment

https://github.com/json-editor/json-editor: I think it the most known library, used by Swagger

Could you point me to the place where it is used by Swagger?

baruchiro commented 1 year ago

Sorry, 3 years ago, I'm not going to search for something that may not exist anymore 😔