ZenWave360/json-schema-ref-parser-jvm

Exception while processing AsyncAPI

Opened this issue · 1 comments

[main] ERROR i.z.jsonrefparser.$RefParser - dereference - Error setting jsonPath: [ ′ p a t t e r n P r o p e r t i e s ′ ] [ ′ x − [ \w \d . \x 2 d ] + '] in https://raw.githubusercontent.com/asyncapi/spec-json-schemas/refs/heads/master/schemas/3.0.0.json java.lang.reflect.UndeclaredThrowableException: null at jdk.proxy2/jdk.proxy2.$Proxy8.read(Unknown Source) at io.zenwave360.jsonrefparser.$RefParser.replaceWith$Ref($RefParser.java:321) at io.zenwave360.jsonrefparser.$RefParser.dereference($RefParser.java:301) at io.zenwave360.jsonrefparser.$RefParser.lambda$dereference$0($RefParser.java:309) at java.base/java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:708) at io.zenwave360.jsonrefparser.$RefParser.dereference($RefParser.java:308) at io.zenwave360.jsonrefparser.$RefParser.lambda$dereference$0($RefParser.java:309) at java.base/java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:708)

Thanks for reporting this.

This is a very edge case where a json-path has some characters that JsonPath library can not handle

jsonPath: $['patternProperties']['^x-[\w\d\.\x2d_]+$']

I still need to find a way to populate that node or find out how to scape those characters.

NOTE: also that 3.0.0.json is not valid as it contains $ref that can not be resolved
Resolver$MissingResourceException: File not found: http://asyncapi.com/examples/3.0.0/contact.json