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

Function compileSchema

pkg/workflow/schema_utils.go:13–15  ·  view source on GitHub ↗

compileSchema parses schemaJSON and compiles it as a jsonschema.Schema registered under schemaURL. It is a shared helper used by all schema-compilation sites in this package to avoid repeating the NewCompiler → AddResource → Compile boilerplate.

(schemaJSON, schemaURL string)

Source from the content-addressed store, hash-verified

11// It is a shared helper used by all schema-compilation sites in this package to avoid
12// repeating the NewCompiler → AddResource → Compile boilerplate.
13func compileSchema(schemaJSON, schemaURL string) (*jsonschema.Schema, error) {
14 return parser.CompileSchema(schemaJSON, schemaURL)
15}

Callers 3

getCompiledSchemaFunction · 0.70
getCompiledToolSchemasFunction · 0.70

Calls 1

CompileSchemaFunction · 0.92

Tested by

no test coverage detected