* Fully loads and expands JSON schema for a provided schema object and URL. * * The callback receives a expanded JSON Schema object with references * replaced with loaded schemas. * * @param {object} schema - A JSON Schema. * @param {string} fetchUrl - Base path from which to store
(schema, fetchUrl, location)
| 134 | * @returns {object} A JSON Schema with references expanded. |
| 135 | */ |
| 136 | async load (schema, fetchUrl, location) { |
| 137 | this.schema = schema |
| 138 | await this._asyncloadExternalRefs(schema, fetchUrl, this._getFileBase(location), true) |
| 139 | return this.expandRefs(schema) |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Recursively expands loaded references in a provided schema. |
no test coverage detected