Skip to content

OpenAPI generated samples are displayed out of order #327

@b-long

Description

@b-long

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:

  1. curl
  2. csharp
  3. ruby
  4. php
  5. powershell
  6. dart
  7. c
  8. objective-c
  9. ocaml
  10. r
  11. swift
  12. kotlin
  13. rust
  14. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions