Skip to content

When both yaml and json tags are present (with differing configuration), yaml takes precedence, cannot be changed #54

@AnalogJ

Description

@AnalogJ

I have a struct that looks like:

type Example struct {
	ItemId  string `json:"item_id,omitempty" yaml:"-"`
}

When generating using tygo, the ItemId field is always ignored (not present in the final generated .ts file). It seems that yaml tags override json tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions