kubernetes-models
Version:
41 lines (40 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiAuthenticationV1UserInfo_1 = require("./IoK8sApiAuthenticationV1UserInfo.js");
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"
};
function addSchema() {
(0, IoK8sApiAuthenticationV1UserInfo_1.addSchema)();
(0, validate_1.register)("io.k8s.api.authentication.v1.TokenReviewStatus", schema);
}
exports.addSchema = addSchema;