GetCompiledRepoConfigSchema returns the compiled repo config schema, compiling it once and caching
()
| 80 | |
| 81 | // GetCompiledRepoConfigSchema returns the compiled repo config schema, compiling it once and caching |
| 82 | func 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. |
| 90 | func getCompiledAwManifestSchema() (*jsonschema.Schema, error) { |
no test coverage detected