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

Function getCompiledAwManifestSchema

pkg/parser/schema_compiler.go:90–95  ·  view source on GitHub ↗

getCompiledAwManifestSchema returns the compiled aw manifest schema, compiling it once and caching.

()

Source from the content-addressed store, hash-verified

88
89// getCompiledAwManifestSchema returns the compiled aw manifest schema, compiling it once and caching.
90func getCompiledAwManifestSchema() (*jsonschema.Schema, error) {
91 awManifestSchemaOnce.Do(func() {
92 compiledAwManifestSchema, awManifestSchemaError = compileSchema(awManifestSchema, "http://contoso.com/aw-manifest-schema.json")
93 })
94 return compiledAwManifestSchema, awManifestSchemaError
95}
96
97// getParsedSchemaDoc returns the parsed (any) representation of a known schema JSON string.
98// For the two well-known schemas (mainWorkflowSchema, mcpConfigSchema) the result is cached

Callers 1

validateWithSchemaFunction · 0.85

Calls 1

compileSchemaFunction · 0.70

Tested by

no test coverage detected