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

Function GetCompiledRepoConfigSchema

pkg/parser/schema_compiler.go:82–87  ·  view source on GitHub ↗

GetCompiledRepoConfigSchema returns the compiled repo config schema, compiling it once and caching

()

Source from the content-addressed store, hash-verified

80
81// GetCompiledRepoConfigSchema returns the compiled repo config schema, compiling it once and caching
82func GetCompiledRepoConfigSchema() (*jsonschema.Schema, error) {
83 repoConfigSchemaOnce.Do(func() {
84 compiledRepoConfigSchema, repoConfigSchemaError = compileSchema(RepoConfigSchema, "http://contoso.com/repo-config-schema.json")
85 })
86 return compiledRepoConfigSchema, repoConfigSchemaError
87}
88
89// getCompiledAwManifestSchema returns the compiled aw manifest schema, compiling it once and caching.
90func getCompiledAwManifestSchema() (*jsonschema.Schema, error) {

Callers 2

validateRepoConfigJSONFunction · 0.92
validateWithSchemaFunction · 0.85

Calls 1

compileSchemaFunction · 0.70

Tested by

no test coverage detected