Skip to content

JavaScript heap out of memory #31

@benjamin-Keller

Description

@benjamin-Keller

Describe the bug

When trying to navigate to most of my generated swagger, it fails on the 3rd generated endpoint on the build.
image

This is both when trying to navigate to some pages on the working app, or by just running npm run build

Below is the snippet of Swagger's OpenAPI 3.0.1 fo rthe last seen endpoint that I believe is what broke it, and the next endpoint.

"/api/v1/chatbot/profiles/{profileId}/providers/{providerDescription}/bookings/{bookingNumber}": {
      "get": {
        "tags": [
          "ChatBotProfileProviderBookings"
        ],
        "summary": "Retrieves a booking for a provider using Booking Number",
        "operationId": "GetChatbotProfileProviderBookingNumber",
        "parameters": [
          {
            "name": "profileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerDescription",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/defaultTemperatureRanges": {
      "get": {
        "tags": [
          "DefaultTemperatureRanges"
        ],
        "summary": "Retrieves a list of JAS temperature ranges used when transporting goods",
        "operationId": "GetDefaultTemperatureRanges",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DefaultTemperatureRange"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DefaultTemperatureRange"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DefaultTemperatureRange"
                  }
                }
              }
            }
          }
        }
      }
    }

To Reproduce

  1. Generate open api with these two open API endpoints
  2. Run npm run build
  3. Wait and it'll fail

Expected behavior

It should build and not freeze the webpage or terminal build

How often does this bug happen?

Every time

System Info

No response

Additional Context

This is for a dotnet 5 API using OpenApi 3.0.1 with Microsoft's built-in swagger support

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproductionThis issue needs more information in order to be investigated

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions