MCPcopy
hub / github.com/github/docs / getDereferencedFiles

Function getDereferencedFiles

src/rest/scripts/utils/decorator.js:158–166  ·  view source on GitHub ↗
(schemas)

Source from the content-addressed store, hash-verified

156}
157
158async function getDereferencedFiles(schemas) {
159 const schemaData = {}
160 for (const filename of schemas) {
161 const file = path.join(REST_DEREFERENCED_DIR, `${filename}.deref.json`)
162 const schema = JSON.parse(await readFile(file))
163 schemaData[filename] = schema
164 }
165 return schemaData
166}
167
168async function createStaticWebhookFiles(webhookSchemas) {
169 if (!Object.keys(webhookSchemas).length) {

Callers 2

getRestOperationsFunction · 0.85
getWebhookOperationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected