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

Function getOpenApiVersion

src/rest/lib/index.js:103–108  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

101}
102
103function getOpenApiVersion(version) {
104 if (!(version in allVersions)) {
105 throw new Error(`Unrecognized version '${version}'. Not found in ${Object.keys(allVersions)}`)
106 }
107 return allVersions[version].openApiVersionName
108}
109
110// Generates the miniToc for a rest reference page.
111export async function getRestMiniTocItems(

Callers 2

getRestFunction · 0.70
getEnabledForAppsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected