Skip to content

[apiserver] Validate that Required Fields are Present on Create #1110

@IfSentient

Description

@IfSentient

Right now, while fields are marked as required in the OpenAPI for a kind, you can create the kind lacking those fields in the payload (and they default to an empty value due to go functionality) when posting to an APIServer that has the app installed on it via the app-sdk. We should validate on create, before hitting the storage, that required fields are present in the payload, and reject the request with a HTTP 400 if the fields are not, the same way CRDs behave with required fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions