Skip to content

Inaccurate Enum Values in OpenAPI Specification for /services/haproxy/stats/native Endpoint #373

Open
@SergeyZvyagin

Description

@SergeyZvyagin

Hello!

According to the OpenAPI specification provided on this page, the status and check_status fields in the response from the GET /services/haproxy/stats/native endpoint are expected to have the following values:

Field Acceptable values
status UP, DOWN, NOLB, MAINT, no check
check_status UNK, INI, SOCKERR, L4OK, L4TOUT, L4CON, L6OK, L6TOUT, L6RSP, L7OK, L7OKC, L7TOUT, L7RSP, L7STS

However, in actuality, the Data Plane API returns values such as UP 1/2, DOWN 1/5, or * L4TOUT, etc., which are valid according to HAProxy, but are not covered by the OpenAPI specification. I'm not entirely sure about other cases, but this could be one of many mismatches between the specification and the API behavior.

Thanks!

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