code: func (sl *SchemaLoader) AddSchema(url string, loader JSONLoader) error {
  
  	ref, err := gojsonreference.NewJsonReference(url)
  
  	if err != nil {
  		return err
  	}
  
  	doc, err := loader.LoadJSON()
  
  	if err != nil {
  		return err
  	}
  
  	if sl.Validate {
  		if err := sl.validateMetaschema(doc); err != nil {
  			return err
  		}
  	}
  
  	return sl.pool.parseReferences(doc, ref, true)
  }
docs: //AddSchema adds a schema under the provided URL to the schema cache