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
java.lang.IllegalStateException: Unable to load a schema for URI : http://json-schema.org/draft-07/schema#
at eu.europa.esig.jws.AbstractJWSUtils$ResourceSchemaClient.get(AbstractJWSUtils.java:369)
at eu.europa.esig.jws.AbstractJWSUtils$ResourceSchemaClient.getParsed(AbstractJWSUtils.java:375)
at com.github.erosb.jsonsKema.SchemaLoader.findVocabulariesInMetaSchema(SchemaLoader.kt:198)
at com.github.erosb.jsonsKema.SchemaLoader.<init>(SchemaLoader.kt:190)
at ...
java.lang.IllegalStateException: Unable to load a schema for URI : http://json-schema.org/draft-07/schema#
at eu.europa.esig.jws.AbstractJWSUtils$ResourceSchemaClient.get(AbstractJWSUtils.java:369)
at eu.europa.esig.jws.AbstractJWSUtils$ResourceSchemaClient.getParsed(AbstractJWSUtils.java:375)
at com.github.erosb.jsonsKema.SchemaLoader.findVocabulariesInMetaSchema(SchemaLoader.kt:198)
at com.github.erosb.jsonsKema.SchemaLoader.<init>(SchemaLoader.kt:190)
Is there a workaround for the issue or is it possible to fix in the new version?
Best regards,
Aleksandr
The text was updated successfully, but these errors were encountered:
Hello @bsanchezb , at the first glance: I strongly advise not using any draft-07 schema with this library, since this implements draft version 2020-12 (which isn't compatible with draft-07).
If you really need to validate draft-07 schemas, then you can either pre-register it, or maybe it works if you just remove the trailing # character.
Removing of # character from the schema itself is not possible, as we are using official json schemas provided within ETSI TS 119 182-1 standard for JAdES signatures. Any custom modifications within the schema are not advisable.
Nevertheless, the fix with registering the original draft-07 schema seems working! Thank you for the tip.
Hello,
Since version 0.11.0, there is a regression on loading a schema, containing a "$schema" header:
I receive the following exception:
Is there a workaround for the issue or is it possible to fix in the new version?
Best regards,
Aleksandr
The text was updated successfully, but these errors were encountered: