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
As you can see, statement.json references statement_base.json by id (#statement_base) not file name (statement_base.json)
Currently, my work around is to manually update all the $ref from #someid to someid.json and use resolutionScope and it seems to work.
But is it possible to resolve references without manually updating the $ref in all the files? Because each time TinCan releases a new version, I will need to go update them all again.
Previously, I used another library in Scala and what I could do was to "preloadSchema" like this
Hello @AlexTo , do you know about any json schema implementation which can do it for you?
This request doesn't seem to be related to any sections of the json schema spec, and actually your problem can probably be worked around by generating one schema json including all the dependency schemas.
And later on, If I call loader.validate(myschema, jsonObj) where myschema references $ref: #ref1_id and $ref: #ref2_id then it will work because the loader has preloaded the references with their ids.
However, due to business decision, we are switching from Play Framework to Spring so I need to find some Java libraries instead. At the moment, my work around is to manually update all #ref1_id etc... to ref1_id.json and use resolutionScope and it works fine.
I was just wondering if this library can do the same but for now I will just go with the work around.
Hi I need to validate my json with TinCan schema, the schema files can be found here TinCan Schema
when I validate my statement, I call schemaLoader.schemaJson(statementSchema), statementSchema comes from statement.json as folllows
And this is statement_base.json
As you can see, statement.json references statement_base.json by id (#statement_base) not file name (statement_base.json)
Currently, my work around is to manually update all the $ref from #someid to someid.json and use resolutionScope and it seems to work.
But is it possible to resolve references without manually updating the $ref in all the files? Because each time TinCan releases a new version, I will need to go update them all again.
Previously, I used another library in Scala and what I could do was to "preloadSchema" like this
loader.preloadSchema(statementSchema) .preloadSchema(statementBaseSchema) .preloadSchema(activitySchema) ....
By doing so, the "loader" stores all the schemas with their id so that reference by id will just work, can I do something similar with this library?
Thanks a lot
The text was updated successfully, but these errors were encountered: