Skip to content

Add CRD field validation annotations #181

Description

@bobbyiliev

Support Kubernetes validation annotations in CRD types.

Example:

#[schemars(range(min = 1, max = 100))]
replicas: i32,

#[schemars(regex = "^[a-z]+$")]
name: String,

Acceptance Criteria:

  • Common validation patterns
  • Integration with schemars
  • Generated OpenAPI validation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions