json-editor
json-editor copied to clipboard
Support for JSON Schema draft 7?
Hello,
Really like the JSON editor, so nice job!
I was wondering if there are any plans to support JSON Schema draft 7?
Attached zip file contains sample json schema and corresponding json config that should be possible to create using the JSON editor. (The attached networking-jsonschema.json is supposed to be filled in partially by hand using the JSON editor, and partially automatic. The ".x" properties will be filled in automatically by a post processing step, but never mind.)
Something is preventing all properties to show and I assume it is the JSON Schema draft 7 constructs for JSON objects that is the problem?
Thanks! /Anderas
Ps. Direct link to example schema not working well:
https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNSgAJEtXqUIZVCgQUAelMda8ALQ61ZAHTSA5qYAmUskSjWADAHZTO1kAYgVYKGwqCSooCmkAaxh4Z3DBCGj9ME5ucTYyNzcYWAQ5AAUpSCopWBpUIjlEKjYISoyamDq0EHhY+KkklJQReBgAN2qmjRAodMz2Lh4FAqKS+HK26trkFAbsJpbNjq70eChqhoxM0FmMwmzFvJBWquOd0AciaYQqAHkvlAAbRuc0IiCgUmSqRaZCM1XghAAegAKAA6qIAygBqdGIdHYgCUmhAAF8WCC7vp4CJsPISQBdMkgBzybo/f6oYEzUH6cGQlIKCCw85SBH6FH4nGovGYrFE0nk7mUno0umMpkvdqzAByZAY7xAZHggg5QNAQrhoqRaNl8rJ5uF8KRn2J9uejqt4pZrsZ+UKxTg62wFVe22mt3mD1ygqOYe66wY4Z5ighUIVim4CDcZCkgmsCSogiTyr5aaZiAyVDc0yo1LonJAAEZfPW2M2W8sxGAQL72E0pBM3LZK9XuhHCMlzs5qunIGsDeOsjklmw3DQMJDoIHCABBAAEuHBe7ARGPW4QyEOoc6Bs+316pq5i5T/Oh7stYpAiIcACpXYrn2pWlSV7Fl7z+AEn2TUsBRhD9nT/BUKXmIC1RJJkVgDUpg1jG9i0jZcnk1LY8O6BwxVAdlIOQsFU1g98RU/b9ELdQDVRApkHHw2jX3TBwIHAx8aN5Oi3wtRiEP/YSVWAhl0L9VZAw2a8uj2A4QCkKgAEcRBgTTR0BZkBLYcie3k5kKPAB9qKVeYYLEj0mJtbFcUlO0AOTVCOJMgS2WszlpPswVHOtSVXNtKTbIkdi5Iw/01mUrVSLU5oNO03T9IbBNojYJosHgbNc3zQsFFMnyzM4hJBJs58grgiTxWcuVIrY2T1Uq6qAqikTePqp1GrclrPJi9U2GqTBrAKCBrGnSRzyQLq1yUTd51QCERCoN1xowSa3Gmw8oAAJijJYUHWzbFW23bpoLQQdhSt18r5MhJx2c6tshHapsmnhA3uxpNt7RBlDACheGqSopB2EBJ2qMhfoQcJdHmPAwDAKBnogAAWUkSSAA=
The only part of networking-jsonschema.json that isn't working is
"propertyNames": {
"anyOf": [
{
"pattern": "^(\\S+)$"
},
{
"pattern": "^.f$"
},
{
"pattern": "^.l$"
}
]
},
which I noted in #915 is an open issue given there's no test case and confusion as to how it should work.
Started a wiki page to track the feature gap. (Disclaimer: I haven't verified the list yet.) Pull requests welcome.
https://github.com/json-editor/json-editor/wiki/Summary-of-JSON-Schema-changes-(Core-&-Validation)