UNPKG

kubernetes-models

Version:
22 lines (21 loc) 649 B
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgUtilIntstrIntOrString } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgUtilIntstrIntOrString"; const schema = { "properties": { "host": { "type": "string", "nullable": true }, "port": { "$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#" } }, "required": [ "port" ], "type": "object" }; export function addSchema() { IoK8sApimachineryPkgUtilIntstrIntOrString(); register("io.k8s.api.core.v1.TCPSocketAction", schema); }