Skip to content

ConnectionStatus enum / anonymous struct #566

@ritzorama

Description

@ritzorama

The ConnectionsStatus field is an array of an anonymous struct. This is not ideal for code maintainability and reusability. A named struct ConnectionStatusInfo is already defined on line 127 with the exact same fields and should be used here, making the field ConnectionsStatus []ConnectionStatusInfo.

A similar issue exists for MesheryInstances in MesheryInstancePage on lines 201-228, which should use []MesheryInstance.

Since this is generated code, the fix needs to be applied to the source OpenAPI specification in schemas/constructs/v1beta1/connection/api.yml. Please investigate why the oapi-codegen tool is not correctly resolving the $ref for items in these arrays.

Originally posted by @gemini-code-assist[bot] in #564 (comment)

Metadata

Metadata

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