Skip to content

Using $ref in root causes stack overflow #2449

Open
@uuf6429

Description

@uuf6429

Describe the bug

Using a reference in the root schema seems to cause a stack overflow / infinite loop/recursion.

Expected behavior

It should work as expected, or at least show a warning/error that this case is not supported.

Steps to reproduce the issue

Use the following schema

{
  "type": "object",

  "$ref": "#/definitions/person",

  "definitions": {

    "person": {
       "properties": {
         "name": {
           "type": "string"
         }
       }
    }

  }
}

(for example on https://prismatic.io/docs/jsonforms/playground/)

I guess same thing would happen on https://jsonforms-editor.netlify.app/, but that site seems quite broken (I keep getting white/blank screens)

Screenshots

No response

Which Version of JSON Forms are you using?

n/a

Package

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions