var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.validateRuntimeObjectSchema=exports.getRuntimeObjectSchema=exports.validateRenativeJsonSchema=exports.getRenativeJsonSchema=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 getRenativeJsonSchema=function getRenativeJsonSchema(){return _schemaRenativeJson.SCHEMAS_RENATIVE_JSON[0];};exports.getRenativeJsonSchema=getRenativeJsonSchema;
var validateRenativeJsonSchema=function validateRenativeJsonSchema(cObj){
var valid=ajvRenativeJson.validate(_schemaRenativeJson.SCHEMAS_RENATIVE_JSON[0],cObj);
return[valid,ajvRenativeJson];
};exports.validateRenativeJsonSchema=validateRenativeJsonSchema;

var getRuntimeObjectSchema=function getRuntimeObjectSchema(){return _schemaRuntimeObject.SCHEMAS_RUNTIME_OBJECT[0];};exports.getRuntimeObjectSchema=getRuntimeObjectSchema;
var validateRuntimeObjectSchema=function validateRuntimeObjectSchema(cObj){
var valid=ajvRuntimeObject.validate(_schemaRuntimeObject.SCHEMAS_RUNTIME_OBJECT[0],cObj);
return[valid,ajvRuntimeObject];
};exports.validateRuntimeObjectSchema=validateRuntimeObjectSchema;
//# sourceMappingURL=index.js.map