kubernetes-models
Version:
36 lines (35 loc) • 982 B
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiAuthenticationV1BoundObjectReference } from "./IoK8sApiAuthenticationV1BoundObjectReference.mjs";
const schema = {
"properties": {
"audiences": {
"items": {
"type": "string"
},
"type": "array"
},
"boundObjectRef": {
"oneOf": [
{
"$ref": "io.k8s.api.authentication.v1.BoundObjectReference#"
},
{
"type": "null"
}
]
},
"expirationSeconds": {
"format": "int64",
"type": "integer",
"nullable": true
}
},
"required": [
"audiences"
],
"type": "object"
};
export function addSchema() {
IoK8sApiAuthenticationV1BoundObjectReference();
register("io.k8s.api.authentication.v1.TokenRequestSpec", schema);
}