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