Sha256: d3c5e36cf7b9c6d02832a97eb5cb65f17e07d0d90ee89454c455b7bf636fddc7
Contents?: true
Size: 551 Bytes
Versions: 55
Compression:
Stored size: 551 Bytes
Contents
// thanks to https://gist.github.com/mgesmundo/07d6ea3958ed4c7d19d1161551fa46ca const $RefParser = require('@apidevtools/json-schema-ref-parser') module.exports = async function () { const parser = new $RefParser() const schema = await parser.dereference(this.resourcePath, { dereference: { circular: false } }) const resolve = await parser.resolve(this.resourcePath, { dereference: { circular: false } }) for (const dep in resolve._$refs) { this.addDependency(dep) } return JSON.stringify(schema) }
Version data entries
55 entries across 55 versions & 3 rubygems