1
0
mirror of synced 2025-12-20 02:19:14 -05:00

break version-specific data into individual files (#34717)

This commit is contained in:
Rachael Sewell
2023-02-15 11:03:08 -08:00
committed by GitHub
parent 8babc127b2
commit 6b4d76e09c
16 changed files with 28832 additions and 28832 deletions

View File

@@ -139,4 +139,11 @@ export function getDocsVersion(openApiVersion) {
return matchingVersion.version
}
export function getOpenApiVersion(version) {
if (!(version in allVersions)) {
throw new Error(`Unrecognized version '${version}'. Not found in ${Object.keys(allVersions)}`)
}
return allVersions[version].openApiVersionName
}
export { allVersions }