"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"validate",{enumerable:!0,get:function(){return validate}});let _IoK8sApiFlowcontrolV1beta1GroupSubject=require("./IoK8sApiFlowcontrolV1beta1GroupSubject.js"),_IoK8sApiFlowcontrolV1beta1ServiceAccountSubject=require("./IoK8sApiFlowcontrolV1beta1ServiceAccountSubject.js"),_IoK8sApiFlowcontrolV1beta1UserSubject=require("./IoK8sApiFlowcontrolV1beta1UserSubject.js"),validate=function validate21(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if(data&&"object"==typeof data&&!Array.isArray(data)){if(void 0===data.kind){let err0={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"kind"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}void 0===data.group||validate22(data.group,{instancePath:instancePath+"/group",parentData:data,parentDataProperty:"group",rootData})||(errors=(vErrors=null===vErrors?validate22.errors:vErrors.concat(validate22.errors)).length),void 0===data.kind||validate26(data.kind,{instancePath:instancePath+"/kind",parentData:data,parentDataProperty:"kind",rootData})||(errors=(vErrors=null===vErrors?validate26.errors:vErrors.concat(validate26.errors)).length),void 0===data.serviceAccount||validate28(data.serviceAccount,{instancePath:instancePath+"/serviceAccount",parentData:data,parentDataProperty:"serviceAccount",rootData})||(errors=(vErrors=null===vErrors?validate28.errors:vErrors.concat(validate28.errors)).length),void 0===data.user||validate32(data.user,{instancePath:instancePath+"/user",parentData:data,parentDataProperty:"user",rootData})||(errors=(vErrors=null===vErrors?validate32.errors:vErrors.concat(validate32.errors)).length)}else{let err1={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"object"}};null===vErrors?vErrors=[err1]:vErrors.push(err1),errors++}return validate21.errors=vErrors,0===errors};function validate22(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||(0,_IoK8sApiFlowcontrolV1beta1GroupSubject.validate)(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?_IoK8sApiFlowcontrolV1beta1GroupSubject.validate.errors:vErrors.concat(_IoK8sApiFlowcontrolV1beta1GroupSubject.validate.errors)).length),validate22.errors=vErrors,0===errors}function validate26(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if("string"!=typeof data){let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"string"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}return validate26.errors=vErrors,0===errors}function validate28(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||(0,_IoK8sApiFlowcontrolV1beta1ServiceAccountSubject.validate)(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?_IoK8sApiFlowcontrolV1beta1ServiceAccountSubject.validate.errors:vErrors.concat(_IoK8sApiFlowcontrolV1beta1ServiceAccountSubject.validate.errors)).length),validate28.errors=vErrors,0===errors}function validate32(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||(0,_IoK8sApiFlowcontrolV1beta1UserSubject.validate)(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?_IoK8sApiFlowcontrolV1beta1UserSubject.validate.errors:vErrors.concat(_IoK8sApiFlowcontrolV1beta1UserSubject.validate.errors)).length),validate32.errors=vErrors,0===errors}