Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immediately circular schema causes a maximum call stack trace exception #271

Closed
erunion opened this issue Jun 28, 2022 · 1 comment
Closed

Comments

@erunion
Copy link
Contributor

erunion commented Jun 28, 2022

Feeding this immediately circular API definition into the library will cause a "Maximum call stack size exceeded" exception within ref.js:

openapi: 3.0.0
info:
  version: 0.0.1
  title: Circular mishandling
servers:
  - url: https://httpbin.org
paths:
  "/anything":
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/responseSchema"
components:
  schemas:
    responseSchema:
      $ref: "#/components/schemas/responseSchema"
      description: This is a description.
wparad added a commit to wparad/json-schema-ref-parser that referenced this issue Aug 8, 2022
@xiaoxuqi-ms
Copy link

Have the same problem, any progress.

@jonluca jonluca closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants