Skip to content

Listing MetalInterconnections throws"data failed to match schemas in oneOf(InterconnectionFabricProvider)" #147

@DimitrisStaratzis

Description

@DimitrisStaratzis
// listInterconnections lists all interconnections for the organization.
func (c *Client) listInterconnections(ctx context.Context) ([]metal.Interconnection, error) {
	// List organization interconnections
	interconnections, _, err := c.Client.InterconnectionsApi.OrganizationListInterconnections(ctx, c.OrganizationID).Execute()
	if err != nil {
		return nil, errors.New(errors.ErrorTypeInternal, "failed to list interconnections").WithRawError(err).WithLog()
	}

	return interconnections.GetInterconnections(), nil
}

throws:

"data failed to match schemas in oneOf(InterconnectionFabricProvider)"

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