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.metricName){let err0={instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty:"metricName"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}void 0===data.metricName||validate25(data.metricName,{instancePath:instancePath+"/metricName",parentData:data,parentDataProperty:"metricName",rootData})||(errors=(vErrors=null===vErrors?validate25.errors:vErrors.concat(validate25.errors)).length),void 0===data.metricSelector||validate27(data.metricSelector,{instancePath:instancePath+"/metricSelector",parentData:data,parentDataProperty:"metricSelector",rootData})||(errors=(vErrors=null===vErrors?validate27.errors:vErrors.concat(validate27.errors)).length),void 0===data.targetAverageValue||validate21(data.targetAverageValue,{instancePath:instancePath+"/targetAverageValue",parentData:data,parentDataProperty:"targetAverageValue",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length),void 0===data.targetValue||validate21(data.targetValue,{instancePath:instancePath+"/targetValue",parentData:data,parentDataProperty:"targetValue",rootData})||(errors=(vErrors=null===vErrors?validate21.errors:vErrors.concat(validate21.errors)).length)}else{let err1={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"object"}};null===vErrors?vErrors=[err1]:vErrors.push(err1),errors++}return validate24.errors=vErrors,0===errors};function validate25(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 validate25.errors=vErrors,0===errors}import{validate as validate28}from"@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1LabelSelector";function validate27(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||validate28(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?validate28.errors:vErrors.concat(validate28.errors)).length),validate27.errors=vErrors,0===errors}import{validate as validate22}from"@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity";function validate21(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||validate22(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?validate22.errors:vErrors.concat(validate22.errors)).length),validate21.errors=vErrors,0===errors}