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

StackOverflowError with object having an array of itself #673

Open
a819694114 opened this issue Feb 28, 2024 · 3 comments
Open

StackOverflowError with object having an array of itself #673

a819694114 opened this issue Feb 28, 2024 · 3 comments
Assignees
Labels
area:server This item is related to the server extension bug Something isn't working pinned Issues and PRs that must not stale

Comments

@a819694114
Copy link

I have the schema snippet like this

"Something": {
  "type": "object",
  "properties": {
    "someGroup": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Something"
          }
        ]
      }
    }
  }
}

It went into infinite loop.
When I change to this

"Something": {
  "type": "object",
  "properties": {
    "someGroup": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "type": "string"
          }
        ]
      }
    }
  }
}

The generation succeeded.

@ricardozanini
Copy link
Member

@a819694114 do you mind telling us in which extension you're seeing this error? (server or client)?

@a819694114
Copy link
Author

@a819694114 do you mind telling us in which extension you're seeing this error? (server or client)?

Hi, I am using the server extension.

@ricardozanini ricardozanini added the area:server This item is related to the server extension label Feb 29, 2024
@carlesarnal carlesarnal added the bug Something isn't working label Mar 12, 2024
Copy link
Contributor

@ricardozanini @hbelmiro This is being labeled as Stale.

@github-actions github-actions bot added the Stale label May 12, 2024
@hbelmiro hbelmiro added pinned Issues and PRs that must not stale and removed Stale labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:server This item is related to the server extension bug Something isn't working pinned Issues and PRs that must not stale
Projects
None yet
Development

No branches or pull requests

4 participants