MCPcopy Create free account
hub / github.com/vercel/vercel / ensureLoaded

Method ensureLoaded

packages/cli/src/util/openapi/openapi-cache.ts:262–268  ·  view source on GitHub ↗

* Ensure the spec is loaded before accessing it

()

Source from the content-addressed store, hash-verified

260 * Ensure the spec is loaded before accessing it
261 */
262 private ensureLoaded(): void {
263 if (!this.spec) {
264 throw new Error(
265 'OpenAPI spec not loaded. Call load() or loadWithSpinner() first.'
266 );
267 }
268 }
269
270 /**
271 * Read cached spec from disk

Callers 3

getEndpointsMethod · 0.95
getBodyFieldsMethod · 0.95
getDisplayColumnsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected