Skip to content

jsonschema2pojo website returns HTTP 500 for using TreeNode example in the wiki #781

Closed

Description

@jeremyhill-up

In https://github.com/joelittlejohn/jsonschema2pojo/wiki/Reference#ref

There is:

Example treeNode.json using a self reference to build a tree:
{
  "description": "Tree node",
  "type": "object",
  "properties": {
    "children": {
      "type": "array",
      "items": {
        "$ref": "#"
      }
    }
  }
}

Attempting to generate the provided example returns HTTP ERROR: 500 java.lang.StackOverflowError.

Activity

  1. joelittlejohn commented on Sep 15, 2017

    @joelittlejohn
    Owner

    Thanks for reporting this. We do some funny things to ensure we can support refs in the web interface. I suspect this would work from Maven/Gradle etc.

    I'll take a look though. Something has regressed it seems.

  2. teresalazar13 commented on Jun 4, 2020

    @teresalazar13

    @joelittlejohn Hello. Have you fixed this issue? I'm having the same problem. Is there any way to work around this?

  3. added this to the 1.1.2 milestone on Apr 26, 2021
  4. added a commit that references this issue on Aug 8, 2024
    2c2cbf6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions