var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.validateRuntimeObjectSchema=exports.validateSchema=void 0;var _ajv=_interopRequireDefault(require("ajv"));
var _schemaRenativeJson=require("./schemaRenativeJson");
var _schemaRuntimeObject=require("./schemaRuntimeObject");


var ajvRenativeJson=new _ajv.default({schemas:_schemaRenativeJson.SCHEMAS_RENATIVE_JSON,allErrors:true,allowUnionTypes:true});
var ajvRuntimeObject=new _ajv.default({schemas:_schemaRuntimeObject.SCHEMAS_RUNTIME_OBJECT,allErrors:true,allowUnionTypes:true});

var getRootSchema=function getRootSchema(){return _schemaRenativeJson.SCHEMAS_RENATIVE_JSON[0];};

var getRuntimeObjectSchema=function getRuntimeObjectSchema(){return _schemaRuntimeObject.SCHEMAS_RUNTIME_OBJECT[0];};

var validateSchema=function validateSchema(cObj){
var valid=ajvRenativeJson.validate(_schemaRenativeJson.SCHEMAS_RENATIVE_JSON[0],cObj);
return[valid,ajvRenativeJson];
};exports.validateSchema=validateSchema;

var validateRuntimeObjectSchema=function validateRuntimeObjectSchema(cObj){
var valid=ajvRuntimeObject.validate(_schemaRuntimeObject.SCHEMAS_RUNTIME_OBJECT[0],cObj);
return[valid,ajvRuntimeObject];
};exports.validateRuntimeObjectSchema=validateRuntimeObjectSchema;var _default=

{
validateSchema:validateSchema,
validateRuntimeObjectSchema:validateRuntimeObjectSchema,
getRootSchema:getRootSchema,
getRuntimeObjectSchema:getRuntimeObjectSchema};exports.default=_default;
//# sourceMappingURL=schemaParser.js.map