Expand description
Shared schemars helpers — emit OpenAPI schemas Kubernetes accepts.
Free-form serde_json::Value fields default to an empty schema
in schemars, which the K8s API server rejects with “type: Required
value: must not be empty for specified object fields”. The typed
workaround is to emit {type: object, x-kubernetes-preserve-unknown- fields: true} — same shape kube-rs’s own helpers produce.
Functions§
- preserve_
unknown_ object - Schema for a free-form JSON object field. Apply via
#[schemars(schema_with = "tatara_process::schema_helpers::preserve_unknown_object")]on anyserde_json::Value/BTreeMap<String, serde_json::Value>field exposed through a CRD.