UNPKG

kubernetes-models

Version:
47 lines (46 loc) 1.04 kB
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "apiGroups": { "items": { "type": "string" }, "type": "array", "nullable": true }, "nonResourceURLs": { "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.rbac.v1.PolicyRule", schema); }