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

Update cloud metadata sending invalid request body #365

Open
2 of 4 tasks
s-nel opened this issue Nov 1, 2021 · 0 comments
Open
2 of 4 tasks

Update cloud metadata sending invalid request body #365

s-nel opened this issue Nov 1, 2021 · 0 comments

Comments

@s-nel
Copy link

s-nel commented Nov 1, 2021

Readiness Checklist

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I am reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

SDK should send the correct request body without extra fields

Current Behavior

Update deployment metadata is sending field last_resource_plan_modified which is not part of the request schema.

Detected unexpected fields for [no.found.adminconsole.api.v1.routes.deployments.models.DeploymentUpdateRequest.DeploymentUpdateMetadata], not failing as strict deserialization has been disabled

io.circe.DecodingFailure$$anon$2: Unexpected field: [last_resource_plan_modified]; valid fields: system_owned, hidden, tags: DownField(metadata)

The request being made is to PUT /api/v1/deployments/{deployment_id} with user agent cloud-sdk-go/2.10.0

Possible Solution

Steps to Reproduce

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Go 1.9):
  • Server type and version:
  • Operating System and version:
  • Link to your project:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant