Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix partner interconnect attachment json request response #796

Merged

Conversation

apinonformoso
Copy link
Contributor

@apinonformoso apinonformoso commented Feb 26, 2025

Request is expecting BGP config input with fields as local_router_asn and peer_router_asn but response should be in the form of local_asn and peer_asn

@apinonformoso apinonformoso changed the title fix json request response fix partner interconnect attachment json request response Feb 26, 2025
@@ -73,7 +74,13 @@ func (req *PartnerInterconnectAttachmentCreateRequest) buildReq() *partnerInterc
}

if req.BGP != (BGP{}) {
request.BGP = &req.BGP
request.BGP = &BGPInput{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the tests need to be updated to reflect this change as well?
https://github.com/digitalocean/godo/blob/main/partner_interconnect_attachments_test.go#L22

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, the update should be the json response of the request.
Done 6e46cd0

@apinonformoso apinonformoso force-pushed the VPC-3920/fix-json-tag-req-res branch from 05d1ecd to 6e46cd0 Compare February 27, 2025 15:56
@danaelhe danaelhe merged commit 8d24e45 into digitalocean:main Feb 27, 2025
8 checks passed
@apinonformoso apinonformoso deleted the VPC-3920/fix-json-tag-req-res branch February 27, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants