MCPcopy Index your code
hub / github.com/github/docs / findOperation

Function findOperation

tests/unit/openapi-schema.js:130–135  ·  view source on GitHub ↗
(version, method, path)

Source from the content-addressed store, hash-verified

128})
129
130async function findOperation(version, method, path) {
131 const allOperations = await getFlatListOfOperations(version)
132 return allOperations.find((operation) => {
133 return operation.requestPath === path && operation.verb.toLowerCase() === method.toLowerCase()
134 })
135}
136
137describe('code examples are defined', () => {
138 test('GET', async () => {

Callers 1

openapi-schema.jsFile · 0.85

Calls 1

getFlatListOfOperationsFunction · 0.85

Tested by

no test coverage detected