Skip to content

Unknown fields in requests should be disallowed. #1213

Closed

Description

@thockin

Today we call validateNoUnknownFields() on a request's resource (e.g. CreateFooRequest.Foo) but we don't check the request itself.

If someone, somehow, sends us a request that has a field we don't understand, we should probably balk, don't you think?

Julian Gutierrez Oschmann (@juli4n) Haven Xia (@HavenXia) Luiz Oliveira (@laoj2)

Activity

  1. HavenXia commented on Aug 25, 2026

    @HavenXia
    Member

    Yes we didn't do that for either update and create (#1174 and #1186), will add that

  2. added
    kind/feature
    area/api
    on Aug 26, 2026
  3. added a commit that references this issue on Aug 27, 2026
    7e33913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/apiarea/api-machinerykind/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions