export const 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.action){let err0={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}if(void 0===data.onPodConditions){let err1={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"onPodConditions"}};null===vErrors?vErrors=[err1]:vErrors.push(err1),errors++}void 0===data.action||validate22(data.action,{instancePath:instancePath+"/action",parentData:data,parentDataProperty:"action",rootData})||(errors=(vErrors=null===vErrors?validate22.errors:vErrors.concat(validate22.errors)).length),void 0===data.onExitCodes||validate24(data.onExitCodes,{instancePath:instancePath+"/onExitCodes",parentData:data,parentDataProperty:"onExitCodes",rootData})||(errors=(vErrors=null===vErrors?validate24.errors:vErrors.concat(validate24.errors)).length),void 0===data.onPodConditions||validate28(data.onPodConditions,{instancePath:instancePath+"/onPodConditions",parentData:data,parentDataProperty:"onPodConditions",rootData})||(errors=(vErrors=null===vErrors?validate28.errors:vErrors.concat(validate28.errors)).length)}else{let err2={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"object"}};null===vErrors?vErrors=[err2]:vErrors.push(err2),errors++}return validate21.errors=vErrors,0===errors};let schema7={enum:["Count","FailJob","Ignore"]};function validate22(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++}if(!("Count"===data||"FailJob"===data||"Ignore"===data)){let err1={instancePath,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:schema7.enum}};null===vErrors?vErrors=[err1]:vErrors.push(err1),errors++}return validate22.errors=vErrors,0===errors}import{validate as validate25}from"./IoK8sApiBatchV1PodFailurePolicyOnExitCodesRequirement.mjs";function validate24(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||validate25(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?validate25.errors:vErrors.concat(validate25.errors)).length),validate24.errors=vErrors,0===errors}import{validate as validate30}from"./IoK8sApiBatchV1PodFailurePolicyOnPodConditionsPattern.mjs";function validate29(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return validate30(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?validate30.errors:vErrors.concat(validate30.errors)).length),validate29.errors=vErrors,0===errors}function validate28(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if(Array.isArray(data)){let len0=data.length;for(let i0=0;i0<len0;i0++)validate29(data[i0],{instancePath:instancePath+"/"+i0,parentData:data,parentDataProperty:i0,rootData})||(errors=(vErrors=null===vErrors?validate29.errors:vErrors.concat(validate29.errors)).length)}else{let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"array"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}return validate28.errors=vErrors,0===errors}