"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"validate",{enumerable:!0,get:function(){return validate}});let _IoK8sApiNetworkingV1beta1IngressBackend=require("./IoK8sApiNetworkingV1beta1IngressBackend.js"),_IoK8sApiNetworkingV1beta1IngressRule=require("./IoK8sApiNetworkingV1beta1IngressRule.js"),_IoK8sApiNetworkingV1beta1IngressTLS=require("./IoK8sApiNetworkingV1beta1IngressTLS.js"),validate=function validate21(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if(data&&"object"==typeof data&&!Array.isArray(data))void 0===data.backend||validate22(data.backend,{instancePath:instancePath+"/backend",parentData:data,parentDataProperty:"backend",rootData})||(errors=(vErrors=null===vErrors?validate22.errors:vErrors.concat(validate22.errors)).length),void 0===data.ingressClassName||validate26(data.ingressClassName,{instancePath:instancePath+"/ingressClassName",parentData:data,parentDataProperty:"ingressClassName",rootData})||(errors=(vErrors=null===vErrors?validate26.errors:vErrors.concat(validate26.errors)).length),void 0===data.rules||validate28(data.rules,{instancePath:instancePath+"/rules",parentData:data,parentDataProperty:"rules",rootData})||(errors=(vErrors=null===vErrors?validate28.errors:vErrors.concat(validate28.errors)).length),void 0===data.tls||validate34(data.tls,{instancePath:instancePath+"/tls",parentData:data,parentDataProperty:"tls",rootData})||(errors=(vErrors=null===vErrors?validate34.errors:vErrors.concat(validate34.errors)).length);else{let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"object"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}return validate21.errors=vErrors,0===errors};function validate22(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return null===data||(0,_IoK8sApiNetworkingV1beta1IngressBackend.validate)(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?_IoK8sApiNetworkingV1beta1IngressBackend.validate.errors:vErrors.concat(_IoK8sApiNetworkingV1beta1IngressBackend.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&&null!==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 validate29(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return(0,_IoK8sApiNetworkingV1beta1IngressRule.validate)(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?_IoK8sApiNetworkingV1beta1IngressRule.validate.errors:vErrors.concat(_IoK8sApiNetworkingV1beta1IngressRule.validate.errors)).length),validate29.errors=vErrors,0===errors}function validate28(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if(!Array.isArray(data)&&null!==data){let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"array"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}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)}return validate28.errors=vErrors,0===errors}function validate35(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;return(0,_IoK8sApiNetworkingV1beta1IngressTLS.validate)(data,{instancePath,parentData,parentDataProperty,rootData})||(errors=(vErrors=null===vErrors?_IoK8sApiNetworkingV1beta1IngressTLS.validate.errors:vErrors.concat(_IoK8sApiNetworkingV1beta1IngressTLS.validate.errors)).length),validate35.errors=vErrors,0===errors}function validate34(data,{instancePath="",parentData,parentDataProperty,rootData=data}={}){let vErrors=null,errors=0;if(!Array.isArray(data)&&null!==data){let err0={instancePath,schemaPath:"#/type",keyword:"type",params:{type:"array"}};null===vErrors?vErrors=[err0]:vErrors.push(err0),errors++}if(Array.isArray(data)){let len0=data.length;for(let i0=0;i0<len0;i0++)validate35(data[i0],{instancePath:instancePath+"/"+i0,parentData:data,parentDataProperty:i0,rootData})||(errors=(vErrors=null===vErrors?validate35.errors:vErrors.concat(validate35.errors)).length)}return validate34.errors=vErrors,0===errors}