Skip to content

Recursive schema crashes code generation #36

@gertvv

Description

@gertvv

A recursive schema crashes code generation:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/schema/outer.schema.json",
  "type": "object",
  "properties": {
    "inners": {
      "type": "array",
      "items": {
        "$ref": "classpath:/com/example/outer.schema.json"
      }
    }
  },
  "required": [
    "inners"
  ]
}

With error:

Failed toString() invocation on an object of type [java.util.LinkedHashMap]
java.lang.StackOverflowError

See example repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions