UNPKG

kubernetes-models

Version:
32 lines (31 loc) 761 B
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1EnvVarSource } from "./IoK8sApiCoreV1EnvVarSource.mjs"; const schema = { "properties": { "name": { "type": "string" }, "value": { "type": "string", "nullable": true }, "valueFrom": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.EnvVarSource#" }, { "type": "null" } ] } }, "required": [ "name" ], "type": "object" }; export function addSchema() { IoK8sApiCoreV1EnvVarSource(); register("io.k8s.api.core.v1.EnvVar", schema); }