Skip to content

Support encoding/json/v2 struct tag options #1678

@makkes

Description

@makkes

The following code will raise the SA5008 check because the check doesn't support the new tag options that will be introduced with encoding/json/v2 (which is still experimental):

type Resource struct {
	Type ResourceType `json:"type,case:ignore"`
}

I wasn't able to find a way to add exceptions to SA5008 for specific tag options and I suppose it should just support those new options (there might be more than case, I'm not 100% sure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions