Skip to content

Unable to use recursive schema #1491

@jondoe1337

Description

@jondoe1337

Describe the bug
I have a json schema which uses a $ref as a items reference: https://pastebin.com/EJBLXZ3b (line 57)
After including it in the example and running it: I see in the dev console of my chrome:

index.js:42 Uncaught TypeError: Converting circular structure to JSON
    at stringify (index.js:42)
    at stringify (index.js:50)
    at stringify (index.js:50)
    at stringify (index.js:50)
    at stringify (index.js:50)
    at stringify (index.js:50)
    at stringify (index.js:50)
    at stringify (index.js:50)
    at stringify (index.js:50)

When I remove line 57 in the schema, it works.

To Reproduce
Steps to reproduce the behavior:

  1. Use React without redux example and use the schema shown above
  2. Start example
  3. Open dev console
  4. See error

Expected behavior
A schema with recursion should work, or at least not fail to be used.

Browser:

  • Chrome
  • 76.0.3809.100 (OSX 64bit)

Used Setup:

  • Framework: react + express
  • RendererSet: material

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions