getCompiledMcpConfigSchema returns the compiled MCP config schema, compiling it once and caching
()
| 72 | |
| 73 | // getCompiledMcpConfigSchema returns the compiled MCP config schema, compiling it once and caching |
| 74 | func getCompiledMcpConfigSchema() (*jsonschema.Schema, error) { |
| 75 | mcpConfigSchemaOnce.Do(func() { |
| 76 | compiledMcpConfigSchema, mcpConfigSchemaError = compileSchema(mcpConfigSchema, "http://contoso.com/mcp-config-schema.json") |
| 77 | }) |
| 78 | return compiledMcpConfigSchema, mcpConfigSchemaError |
| 79 | } |
| 80 | |
| 81 | // GetCompiledRepoConfigSchema returns the compiled repo config schema, compiling it once and caching |
| 82 | func GetCompiledRepoConfigSchema() (*jsonschema.Schema, error) { |
no test coverage detected