HiDeoo / starlight-openapi

Starlight plugin to generate documentation from OpenAPI/Swagger specifications
https://starlight-openapi.vercel.app
MIT License
112 stars 14 forks source link

Request body does not get rendered #26

Closed azan-n closed 7 months ago

azan-n commented 7 months ago

Describe the bug

Some request bodies get listed as object.

image

To Reproduce

For the following requestBody

"requestBody": {
  "content": {
    "application/json": {
      "schema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/TrialPolicyRequestModel"
          },
          {
            "required": [
              "allowContainerActivation",
              "allowVmActivation",
              "disableGeoLocation",
              "fingerprintMatchingStrategy",
              "name",
              "trialLength",
              "userLocked"
            ]
          }
        ]
      }
    }
  }
}

Expected behavior

Same as response objects, the request body should render correctly.

How often does this bug happen?

Every time

System Info

No response

Additional Context

No response