MCPcopy
hub / github.com/github/docs / getDifferences

Function getDifferences

src/rest/scripts/test-open-api-schema.js:129–137  ·  view source on GitHub ↗
(openAPISchemaCheck, contentCheck)

Source from the content-addressed store, hash-verified

127}
128
129function getDifferences(openAPISchemaCheck, contentCheck) {
130 const differences = {}
131 for (const version in openAPISchemaCheck) {
132 const diffOpenApiContent = difference(openAPISchemaCheck[version], contentCheck[version])
133 if (Object.keys(diffOpenApiContent).length > 0) differences[version] = diffOpenApiContent
134 }
135
136 return differences
137}
138
139function throughDirectory(directory) {
140 fs.readdirSync(directory).forEach((file) => {

Callers 1

Calls 1

differenceFunction · 0.85

Tested by

no test coverage detected