code: function loadSchema(schemaBasePath, fullSchemaFileName) {
      var scfPath = fullSchemaFileName.split('/');
      var schemaFileName = scfPath[scfPath.length - 1];
      var mainSchema = null;
  
      // First, register() the main schemas you plan to use.
      try {
          mainSchema = _jsYaml2.default.load(_fs2.default.readFileSync(_path2.default.resolve(schemaBasePath, schemaFileName), 'utf-8'));
          var missingSchemas = js.register(mainSchema);
  
          // Next, load the missing sub-schemas recursively
          missingSchemas.forEach(function (missingSchema) {
              loadSchema(schemaBasePath, missingSchema);
          });
      } catch (err) {
          //console.log(err)
      }
  
      return mainSchema;
  }
docs: Load the named JSON schema
  
  @arg  {String} schemaFileName - The name of the schema file
  
  @return {Object}              - The loaded schema
  
  @function
   Load the JSON schema validator module and create a validator object