Find a good YAML schema form
baruchiro opened this issue · comments
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:
- https://containership.github.io/konstellate-editor/: Not by schema and written by Clojure lang. But it is good and it also shows the documentation.
- https://github.com/json-editor/json-editor: I think it the most known library, used by Swagger, but it does not support YAML as you can see here: json-editor/json-editor#772 (example)
You know what? Maybe we can use a JSON builder and convert the output to YAML?
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.
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.
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.
Keeping this alive
@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?
Sorry, 3 years ago, I'm not going to search for something that may not exist anymore 😔