UNPKG

kubernetes-models

Version:
30 lines (29 loc) 617 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "error": { "type": "string", "nullable": true }, "port": { "format": "int32", "type": "integer" }, "protocol": { "enum": [ "SCTP", "TCP", "UDP" ], "type": "string" } }, "required": [ "port", "protocol" ], "type": "object" }; export function addSchema() { register("io.k8s.api.core.v1.PortStatus", schema); }