You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to render some data with schemas containing multiple oneOfs inside an allOf, some of the schemas don't seem to be added to the schemaList correctly, which causes the selects to throw errors on changing to certain values. I don't think the schema draft v4 disallows it, and I can logically think of a few scenarios where you'd want multiple groups of multiple choices (e.g. choose one from this and one from this, etc...). I've included a quick schema that I made to exemplify the problem (which is contrived and not how I would structure actual data, but exhibits the bug I've encountered). I attempted to backtrace the issue, and I think it might have something to do with some calls to removeSchema when handling xorSchemas, but I'm not sure. If you'd like more or better examples, I can post those as well. Thanks.
vara='json schema data from file or server'vardata=Jsonary.create({})varschema=Jsonary.createSchema(a)data.addSchema(schema)Jsonary.render($('#main')[0],data)
The text was updated successfully, but these errors were encountered:
When attempting to render some data with schemas containing multiple oneOfs inside an allOf, some of the schemas don't seem to be added to the schemaList correctly, which causes the selects to throw errors on changing to certain values. I don't think the schema draft v4 disallows it, and I can logically think of a few scenarios where you'd want multiple groups of multiple choices (e.g. choose one from this and one from this, etc...). I've included a quick schema that I made to exemplify the problem (which is contrived and not how I would structure actual data, but exhibits the bug I've encountered). I attempted to backtrace the issue, and I think it might have something to do with some calls to removeSchema when handling xorSchemas, but I'm not sure. If you'd like more or better examples, I can post those as well. Thanks.
I've been testing my schema with
The text was updated successfully, but these errors were encountered: