swagger-ui-generic-conditional-visibility-plugin

Interactive demos: cascading parameters and request-body schema resolution from OpenAPI extensions — no server required.

Run locally
npm run build
npm run demo
# open https://dr0na.github.io/swagger-ui-generic-conditional-visibility-plugin/

Live demos

Catalog (2-level)

Path parameters only. See the request body stay hidden until both region and tier are selected.

  • 2 path selectors
  • Gated Example Value / Schema
  • Distinct JSON per combination
Open catalog demo →

Deployments (3-level)

Path + header. Third selector X-Channel shows mixed in support.

  • 2 path + 1 header
  • Nested enum map
  • Resolved schema banner
Open deployments demo →

What to try in each demo

  1. Expand the POST operation.
  2. Notice request body shows a gate message before selectors are complete.
  3. Pick the first selector — body still hidden; second selector enables.
  4. Complete all selectors — Example Value and Schema match one DTO, not the full oneOf.
  5. Change an earlier selector — downstream values and body reset.