UNPKG

kubernetes-models

Version:
26 lines (25 loc) 779 B
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgUtilIntstrIntOrString } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgUtilIntstrIntOrString"; const schema = { "properties": { "port": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#" }, { "type": "null" } ] }, "protocol": { "type": "string", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApimachineryPkgUtilIntstrIntOrString(); register("io.k8s.api.extensions.v1beta1.NetworkPolicyPort", schema); }