getCompiledMainWorkflowSchema returns the compiled main workflow schema, compiling it once and caching
()
| 64 | |
| 65 | // getCompiledMainWorkflowSchema returns the compiled main workflow schema, compiling it once and caching |
| 66 | func getCompiledMainWorkflowSchema() (*jsonschema.Schema, error) { |
| 67 | mainWorkflowSchemaOnce.Do(func() { |
| 68 | compiledMainWorkflowSchema, mainWorkflowSchemaError = compileSchema(mainWorkflowSchema, "http://contoso.com/main-workflow-schema.json") |
| 69 | }) |
| 70 | return compiledMainWorkflowSchema, mainWorkflowSchemaError |
| 71 | } |
| 72 | |
| 73 | // getCompiledMcpConfigSchema returns the compiled MCP config schema, compiling it once and caching |
| 74 | func getCompiledMcpConfigSchema() (*jsonschema.Schema, error) { |
no test coverage detected