export const validate=function validate24(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if(data&&"object"==typeof data&&!Array.isArray(data)){if(void 0===data.gateway){let err0={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"gateway"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}if(void 0===data.system){let err1={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"system"}};null===vErrors?vErrors=[err1]:vErrors.push(err1),errors++}if(void 0===data.secretRef){let err2={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"secretRef"}};null===vErrors?vErrors=[err2]:vErrors.push(err2),errors++}void 0===data.fsType||validate21(data.fsType,{instancePath:instancePath+"/fsType",parentData:data,parentDataProperty:"fsType",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length),void 0===data.gateway||validate23(data.gateway,{instancePath:instancePath+"/gateway",parentData:data,parentDataProperty:"gateway",rootData})||(errors=(vErrors=null===vErrors?validate23.errors:vErrors.concat(validate23.errors)).length),void 0===data.protectionDomain||validate21(data.protectionDomain,{instancePath:instancePath+"/protectionDomain",parentData:data,parentDataProperty:"protectionDomain",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length),void 0===data.readOnly||validate22(data.readOnly,{instancePath:instancePath+"/readOnly",parentData:data,parentDataProperty:"readOnly",rootData})||(errors=(vErrors=null===vErrors?validate22.errors:vErrors.concat(validate22.errors)).length),void 0===data.secretRef||validate29(data.secretRef,{instancePath:instancePath+"/secretRef",parentData:data,parentDataProperty:"secretRef",rootData})||(errors=(vErrors=null===vErrors?validate29.errors:vErrors.concat(validate29.errors)).length),void 0===data.sslEnabled||validate22(data.sslEnabled,{instancePath:instancePath+"/sslEnabled",parentData:data,parentDataProperty:"sslEnabled",rootData})||(errors=(vErrors=null===vErrors?validate22.errors:vErrors.concat(validate22.errors)).length),void 0===data.storageMode||validate21(data.storageMode,{instancePath:instancePath+"/storageMode",parentData:data,parentDataProperty:"storageMode",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length),void 0===data.storagePool||validate21(data.storagePool,{instancePath:instancePath+"/storagePool",parentData:data,parentDataProperty:"storagePool",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length),void 0===data.system||validate23(data.system,{instancePath:instancePath+"/system",parentData:data,parentDataProperty:"system",rootData})||(errors=(vErrors=null===vErrors?validate23.errors:vErrors.concat(validate23.errors)).length),void 0===data.volumeName||validate21(data.volumeName,{instancePath:instancePath+"/volumeName",parentData:data,parentDataProperty:"volumeName",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length)}else{let err3={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"object"}};null===vErrors?vErrors=[err3]:vErrors.push(err3),errors++}return validate24.errors=vErrors,0===errors};function validate21(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if("string"!=typeof data&&null!==data){let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"string"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}return validate21.errors=vErrors,0===errors}function validate23(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 validate23.errors=vErrors,0===errors}function validate22(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if("boolean"!=typeof data&&null!==data){let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"boolean"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}return validate22.errors=vErrors,0===errors}import{validate as validate30}from"./IoK8sApiCoreV1SecretReference.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}