kubernetes-models
Version:
37 lines (36 loc) • 964 B
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiAuthenticationV1UserInfo } from "./IoK8sApiAuthenticationV1UserInfo.mjs";
const schema = {
"properties": {
"audiences": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"authenticated": {
"type": "boolean",
"nullable": true
},
"error": {
"type": "string",
"nullable": true
},
"user": {
"oneOf": [
{
"$ref": "io.k8s.api.authentication.v1.UserInfo#"
},
{
"type": "null"
}
]
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiAuthenticationV1UserInfo();
register("io.k8s.api.authentication.v1.TokenReviewStatus", schema);
}