UNPKG

kubernetes-models

Version:
40 lines (39 loc) 884 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "apiGroups": { "items": { "type": "string" }, "type": "array", "nullable": true }, "resourceNames": { "items": { "type": "string" }, "type": "array", "nullable": true }, "resources": { "items": { "type": "string" }, "type": "array", "nullable": true }, "verbs": { "items": { "type": "string" }, "type": "array" } }, "required": [ "verbs" ], "type": "object" }; export function addSchema() { register("io.k8s.api.authorization.v1.ResourceRule", schema); }