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

Function createCategoryList

tests/unit/openapi-schema.js:31–41  ·  view source on GitHub ↗
(operations)

Source from the content-addressed store, hash-verified

29}
30
31function createCategoryList(operations) {
32 const catSubCatList = []
33 for (const category of Object.keys(operations)) {
34 const subcategories = Object.keys(operations[category])
35 for (const subcategory of subcategories) {
36 catSubCatList.push(...operations[category][subcategory])
37 }
38 }
39
40 return catSubCatList
41}
42
43describe('markdown for each rest version', () => {
44 test('markdown file exists for every operationId prefix in all versions of the OpenAPI schema', async () => {

Callers 1

getFlatListOfOperationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected