kubernetes-models
Version:
35 lines (34 loc) • 814 B
JavaScript
import { register } from "@kubernetes-models/validate";
const schema = {
"properties": {
"extra": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "object",
"nullable": true
},
"groups": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"uid": {
"type": "string",
"nullable": true
},
"username": {
"type": "string",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
register("io.k8s.api.authentication.v1.UserInfo", schema);
}