Cargo Features

k8s_openapi has no features set by default.

[dependencies]
k8s-openapi = { version = "0.21.1", features = ["earliest", "v1_24", "v1_28", "v1_29", "latest", "schemars"] }
earliest = v1_24

Each feature corresponds to a supported version of Kubernetes

v1_24 earliest?
v1_25 v1_26 v1_27 v1_28
v1_29 latest?
latest = v1_29

Features from optional dependencies

schemars implicit feature

Enables schemars

schemars:

Generate JSON Schemas from Rust code