MCPcopy Create free account
hub / github.com/github/gh-aw / getCompiledMainWorkflowSchema

Function getCompiledMainWorkflowSchema

pkg/parser/schema_compiler.go:66–71  ·  view source on GitHub ↗

getCompiledMainWorkflowSchema returns the compiled main workflow schema, compiling it once and caching

()

Source from the content-addressed store, hash-verified

64
65// getCompiledMainWorkflowSchema returns the compiled main workflow schema, compiling it once and caching
66func 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
74func getCompiledMcpConfigSchema() (*jsonschema.Schema, error) {

Callers 1

validateWithSchemaFunction · 0.85

Calls 1

compileSchemaFunction · 0.70

Tested by

no test coverage detected