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

Schema Editing #6

Open
rkatzmann opened this issue Jul 22, 2016 · 8 comments
Open

Schema Editing #6

rkatzmann opened this issue Jul 22, 2016 · 8 comments

Comments

@rkatzmann
Copy link

rkatzmann commented Jul 22, 2016

When opening any json file the editor immediately requires me to open a schema.
However I don't have a schema. So I cannot edit it at all with that editor.

My wish is an enhancement in this direction. I see two possibilities:

  1. Add full-blown schema editing (preferred)

  2. Use optionally a generator to create a schema from the loaded json file.

    -> There are several schema generators available like npm
    -> However you might need need to add a setting for the npm binary path

@RicoSuter
Copy link
Owner

Thank you for the good idea. I currently dont have the spare time for this project... However if you'd like to help, please create a PR.

@RicoSuter
Copy link
Owner

This fix is now simple to implement: Just use JsonSchema4.FromData when no schema is availablr

@demo7up
Copy link

demo7up commented Dec 23, 2019

Is there an example somewhere on how to use "JsonSchema4.FromData" because I have json files I'd like to edit but when I got to load them clicking validate states " Its valid" but the UI is an empty white page.

@RicoSuter
Copy link
Owner

@demo7up
Copy link

demo7up commented Dec 23, 2019

Is there a way to have the application auto generate a schema if none is detected? Or which file/portion of the source to look at for this.

@RicoSuter
Copy link
Owner

I dont think this feature is available. But it should be quite easy to add.

@demo7up
Copy link

demo7up commented Dec 23, 2019

Can I buy you a couple beers for some direction :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants