UNPKG

kubernetes-models

Version:
59 lines (58 loc) 1.71 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiAuthorizationV1NonResourceAttributes } from "./IoK8sApiAuthorizationV1NonResourceAttributes.mjs"; import { addSchema as IoK8sApiAuthorizationV1ResourceAttributes } from "./IoK8sApiAuthorizationV1ResourceAttributes.mjs"; const schema = { "properties": { "extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "type": "object", "nullable": true }, "groups": { "items": { "type": "string" }, "type": "array", "nullable": true }, "nonResourceAttributes": { "oneOf": [ { "$ref": "io.k8s.api.authorization.v1.NonResourceAttributes#" }, { "type": "null" } ] }, "resourceAttributes": { "oneOf": [ { "$ref": "io.k8s.api.authorization.v1.ResourceAttributes#" }, { "type": "null" } ] }, "uid": { "type": "string", "nullable": true }, "user": { "type": "string", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApiAuthorizationV1NonResourceAttributes(); IoK8sApiAuthorizationV1ResourceAttributes(); register("io.k8s.api.authorization.v1.SubjectAccessReviewSpec", schema); }