Version: 1.0.0
x-codeSamples Variations API
Exercises every supported shape of the x-codeSamples vendor extension
so each path can be inspected in isolation in the demo.
Tracks:
- https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/issues/1204
- https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/issues/1036
Control — no x-codeSamples
Sanity check. Only the Postman-generated language tabs should render;
Single sample, no label
One C# sample with no `label`. Inner tab id falls back to indexed
Single sample, with label
One PHP sample with `label: Custom`. Inner tab id is `PHP-Custom`
Multiple samples per language with distinct labels (#1204)
Three Python samples covering three auth flows. Before the fix this
Multiple samples per language, no labels
Two PowerShell samples without `label`. Inner tab ids fall back to
Duplicate lang+label (defensive collision suffix)
Two Java samples sharing both `lang: Java` and `label: Auth`. This
Mixed languages, some with multiple samples
Realistic mix: two Python entries (with labels), one Ruby (no
Sample for a language not in languageTabs
A Dart sample is provided, but `Dart` is typically not in the