Skip to content

docs: align public API contract with native Go editing and registered routes #45

Open

Description

@0702hjj

Problem and responsibility layers

The public OpenAPI and route inventory omit existing Git compatibility and script edit-call operations. Editing descriptions still refer to retired HTTP geometry services, and do not describe the gateway's current capacity/validation error translation. This can make clients miss supported operations or handle failures incorrectly.

Layer Change
Go gateway Route registrations and existing error translation remain authoritative
Public contract Document missing operations, optional Git source revision guard, native execution and public errors
Documentation verification Compare inventory/OpenAPI with Go registrations; reject unsupported extraction syntax and unresolved references
Bilingual reference Explain contract coverage and source of truth

Architecture (local)

flowchart LR
 API[Existing Go gateway registrations] --> VERIFY[Route coverage verification]
 ERR[Existing native domain and gateway error mapping] --> CONTRACT[Public OpenAPI]
 VERIFY --> CONTRACT
 VERIFY --> LIST[Public route inventory]
 CONTRACT --> CLIENT[Web / Agent / API clients]
 classDef changed fill:#fff3e0,stroke:#b45309,stroke-width:3px,color:#111;
 class VERIFY,CONTRACT,LIST changed;
Loading

Data flow (local)

flowchart TB
 SOURCE[Read Go route registrations] --> EXPAND[Expand supported literal action loops]
 EXPAND --> CHECK[Compare exact method/path sets]
 CHECK --> FAIL[Fail on missing or extra public routes]
 CONTRACT[OpenAPI operations and schemas] --> CHECK
 CONTRACT --> REFS[Resolve references / check operation identifiers]
 REFS --> BUILD[Documentation tests and build]
 classDef changed fill:#fff3e0,stroke:#b45309,stroke-width:3px,color:#111;
 class EXPAND,CHECK,FAIL,CONTRACT,REFS changed;
Loading

Validation starts with reproducing the current five missing routes. Documentation checks complement runtime tests; they do not claim to derive every semantic schema automatically from Go.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions