Skip to content

DisallowUnknownFields feature #27

@cirelli94

Description

@cirelli94

It would be great to have a feature like the DisallowUnknownFields to set in the onionwriter.DecodeOnion

	var foo Bar
	decoder := json.NewDecoder(r.Body)
	decoder.DisallowUnknownFields()
	if err := decoder.Decode(&foo); err != nil {
		return err
	}
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions