MCPcopy
hub / github.com/NginxProxyManager/nginx-proxy-manager / getCompiledSchema

Function getCompiledSchema

backend/schema/index.js:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 * and returns the memory cached value
13 */
14const getCompiledSchema = async () => {
15 if (compiledSchema === null) {
16 compiledSchema = await $RefParser.dereference(`${__dirname}/swagger.json`, {
17 mutateInputSchema: false,
18 });
19 }
20 return compiledSchema;
21};
22
23/**
24 * Scans the schema for the validation schema for the given path and method

Callers 2

validate-schema.jsFile · 0.90
schema.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected