Skip to content

Update cloud metadata sending invalid request body #365

@s-nel

Description

@s-nel

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions