UNPKG

kubernetes-models

Version:
33 lines (32 loc) 736 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "format": { "type": "string", "nullable": true }, "jsonPath": { "type": "string" }, "name": { "type": "string" }, "priority": { "format": "int32", "type": "integer", "nullable": true }, "type": { "type": "string" } }, "required": [ "name", "type", "jsonPath" ], "type": "object" }; export function addSchema() { register("io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition", schema); }