()
| 297 | const value = JSON.parse(raw); |
| 298 | if (options.schema && value.schema !== options.schema) throw new Error(`expected schema ${options.schema}`); |
| 299 | } |
| 300 | return source(relativePath, 'healthy', 'source is readable', 1); |
| 301 | } catch (error) { |
| 302 | return source(relativePath, 'unreadable', error.message, null, [relativePath]); |
| 303 | } |
| 304 | } |
| 305 |