generated from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
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)
Reactions are currently unavailable