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
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" net.pwall.json.pointer.JSONPointerException: Recursive $ref - /definitions/Extension
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:175)
at net.pwall.json.schema.parser.Parser.parseRef(Parser.kt:327)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:202)
at net.pwall.json.schema.parser.Parser.parseItems(Parser.kt:336)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:223)
at net.pwall.json.schema.parser.Parser.parseProperties(Parser.kt:342)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:215)
at net.pwall.json.schema.parser.Parser.parseRef(Parser.kt:327)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:202)
at net.pwall.json.schema.parser.Parser.parseItems(Parser.kt:336)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:223)
at net.pwall.json.schema.parser.Parser.parseProperties(Parser.kt:342)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:215)
at net.pwall.json.schema.parser.Parser.parseRef(Parser.kt:327)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:202)
at net.pwall.json.schema.parser.Parser.parseProperties(Parser.kt:342)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:215)
at net.pwall.json.schema.parser.Parser.parseRef(Parser.kt:327)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:202)
at net.pwall.json.schema.parser.Parser.parseCombinationSchema(Parser.kt:309)
at net.pwall.json.schema.parser.Parser.parseSchema(Parser.kt:208)
at net.pwall.json.schema.parser.Parser.parse(Parser.kt:149)
at net.pwall.json.schema.parser.Parser.parse(Parser.kt:120)
at net.pwall.json.schema.codegen.CodeGenerator.addTarget(CodeGenerator.kt:478)
at net.pwall.json.schema.codegen.CodeGenerator.addTargets(CodeGenerator.kt:370)
at net.pwall.json.schema.codegen.CodeGenerator.addTargets$default(CodeGenerator.kt:364)
at net.pwall.json.schema.codegen.CodeGenerator.generate(CodeGenerator.kt:354)
at net.pwall.json.schema.codegen.CodeGenerator.generate(CodeGenerator.kt:344)
at Generate_FHIR_schemaKt.main(Generate_FHIR_schema.kt:11)
The text was updated successfully, but these errors were encountered:
I think the message is self-explanatory - $ref doesn't allow recursion. Draft 2019-09 of JSON Schema introduced $recursiveRef, and draft 2020-12 introduced $dynamicRef, but json-kotlin-schema-codegen does not support either of these constructs. Sorry about that.
I have been working on a new version which supports the full draft 2020-12 spec., but I'm afraid that's still some months away from being ready.
I wish to generate kotlin data classe for the FHIR v4.0.1 draft v7 json schema (download) and executing
gives
The text was updated successfully, but these errors were encountered: