Skip to content

Enable JSON Tags for Struct types #2710

Closed as not planned
Closed as not planned
@awatterson22

Description

Describe the feature

Hi, I would like to see if it is possible to add json tagging to the struct types like below:

type person struct {     
      name string `json:"name,omitempty"`
      age  int `json:"age,omitempty"`
}

Use Case

I am trying to use the AWS Batch Types as part of a Kubernetes Controller and the tool controller-gen to generate CRDs expects JSON tags.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Go SDK V2 Module Versions Used

github.com/aws/aws-sdk-go-v2/service/batch v1.41.1

Go version used

1.22

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions