Problem
The OpenAPI generated code samples are displayed in an inconsistent order on the documentation site.
Example URL (production):
https://opentdf.io/OpenAPI-clients/authorization/v1/authorization-authorization-service-get-decisions-by-token
Example URL (local dev):
http://localhost:3000/OpenAPI-clients/authorization/v1/authorization-authorization-service-get-decisions-by-token
Current Order
The samples are currently displayed in this order:
- curl
- csharp
- ruby
- php
- powershell
- dart
- c
- objective-c
- ocaml
- r
- swift
- kotlin
- rust
- python
Solution
Sort the languageTabs array in openapi-generated-clients.ts to display samples in a more logical order (e.g., alphabetically or by popularity).
Impact
This affects all OpenAPI-generated documentation pages, making it harder for users to find their preferred language quickly.
Problem
The OpenAPI generated code samples are displayed in an inconsistent order on the documentation site.
Example URL (production):
https://opentdf.io/OpenAPI-clients/authorization/v1/authorization-authorization-service-get-decisions-by-token
Example URL (local dev):
http://localhost:3000/OpenAPI-clients/authorization/v1/authorization-authorization-service-get-decisions-by-token
Current Order
The samples are currently displayed in this order:
Solution
Sort the
languageTabsarray inopenapi-generated-clients.tsto display samples in a more logical order (e.g., alphabetically or by popularity).Impact
This affects all OpenAPI-generated documentation pages, making it harder for users to find their preferred language quickly.