summaryrefslogtreecommitdiff
path: root/vendor/github.com/xeipuuv/gojsonschema/schemaPool.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-25 15:43:25 +0100
committerGitHub <noreply@github.com>2020-02-25 15:43:25 +0100
commit3d37dc639d87e4469a6457cf4592ff5b773d0777 (patch)
treef487a0db671b5303286a935b58577b0d50c64ab9 /vendor/github.com/xeipuuv/gojsonschema/schemaPool.go
parent6babc9f20ca9e3633da1792a31d0391bde6201b6 (diff)
parent68c313911e8a3aed605a12398442212b99f41619 (diff)
downloadpodman-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/schemaPool.go')
-rw-r--r--vendor/github.com/xeipuuv/gojsonschema/schemaPool.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/xeipuuv/gojsonschema/schemaPool.go b/vendor/github.com/xeipuuv/gojsonschema/schemaPool.go
index f124e038d..35b1cc630 100644
--- a/vendor/github.com/xeipuuv/gojsonschema/schemaPool.go
+++ b/vendor/github.com/xeipuuv/gojsonschema/schemaPool.go
@@ -150,12 +150,12 @@ func (p *schemaPool) GetDocument(reference gojsonreference.JsonReference) (*sche
}
// Create a deep copy, so we can remove the fragment part later on without altering the original
- refToUrl, _ := gojsonreference.NewJsonReference(reference.String())
+ refToURL, _ := gojsonreference.NewJsonReference(reference.String())
// First check if the given fragment is a location independent identifier
// http://json-schema.org/latest/json-schema-core.html#rfc.section.8.2.3
- if spd, ok = p.schemaPoolDocuments[refToUrl.String()]; ok {
+ if spd, ok = p.schemaPoolDocuments[refToURL.String()]; ok {
if internalLogEnabled {
internalLog(" From pool")
}
@@ -165,9 +165,9 @@ func (p *schemaPool) GetDocument(reference gojsonreference.JsonReference) (*sche
// If the given reference is not a location independent identifier,
// strip the fragment and look for a document with it's base URI
- refToUrl.GetUrl().Fragment = ""
+ refToURL.GetUrl().Fragment = ""
- if cachedSpd, ok := p.schemaPoolDocuments[refToUrl.String()]; ok {
+ if cachedSpd, ok := p.schemaPoolDocuments[refToURL.String()]; ok {
document, _, err := reference.GetPointer().Get(cachedSpd.Document)
if err != nil {
@@ -200,7 +200,7 @@ func (p *schemaPool) GetDocument(reference gojsonreference.JsonReference) (*sche
}
// add the whole document to the pool for potential re-use
- p.parseReferences(document, refToUrl, true)
+ p.parseReferences(document, refToURL, true)
_, draft, _ = parseSchemaURL(document)