(name)
| 34 | } |
| 35 | |
| 36 | load(name) { |
| 37 | // First search relative to the current context. |
| 38 | // If not found, search the schema paths. |
| 39 | const searchPaths = [ |
| 40 | this.resolveRelativePath(name), |
| 41 | ...this.schemaPaths.map((path) => this.resolvePath(path, name)), |
| 42 | ]; |
| 43 | return this.loadFromSearchPaths(name, searchPaths); |
| 44 | } |
| 45 | |
| 46 | loadExtension(schemaName, extensionName) { |
| 47 | const searchPaths = this.extensionSchemaPaths.map((path) => |
no test coverage detected