diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-25 15:43:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 15:43:25 +0100 |
commit | 3d37dc639d87e4469a6457cf4592ff5b773d0777 (patch) | |
tree | f487a0db671b5303286a935b58577b0d50c64ab9 /vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go | |
parent | 6babc9f20ca9e3633da1792a31d0391bde6201b6 (diff) | |
parent | 68c313911e8a3aed605a12398442212b99f41619 (diff) | |
download | podman-3d37dc639d87e4469a6457cf4592ff5b773d0777.tar.gz podman-3d37dc639d87e4469a6457cf4592ff5b773d0777.tar.bz2 podman-3d37dc639d87e4469a6457cf4592ff5b773d0777.zip |
Merge pull request #5297 from rhatdan/vendor
Update vendor of buildah and containers/common
Diffstat (limited to 'vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go')
-rw-r--r-- | vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go b/vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go index 95e0568ab..20db0c1f9 100644 --- a/vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go +++ b/vendor/github.com/xeipuuv/gojsonschema/schemaLoader.go @@ -21,6 +21,7 @@ import ( "github.com/xeipuuv/gojsonreference" ) +// SchemaLoader is used to load schemas type SchemaLoader struct { pool *schemaPool AutoDetect bool @@ -28,6 +29,7 @@ type SchemaLoader struct { Draft Draft } +// NewSchemaLoader creates a new NewSchemaLoader func NewSchemaLoader() *SchemaLoader { ps := &SchemaLoader{ @@ -141,6 +143,7 @@ func (sl *SchemaLoader) AddSchema(url string, loader JSONLoader) error { return sl.pool.parseReferences(doc, ref, true) } +// Compile loads and compiles a schema func (sl *SchemaLoader) Compile(rootSchema JSONLoader) (*Schema, error) { ref, err := rootSchema.JsonReference() |