mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 12:58:03 +01:00
Only call fetchDoc if actual document URI is equal to current scope as set using 'id' attribute
This commit is contained in:
parent
f387804a6c
commit
64abe842b8
@ -433,7 +433,7 @@ private:
|
||||
return cachedPtr;
|
||||
}
|
||||
|
||||
if (actualDocumentUri) {
|
||||
if (actualDocumentUri && (!currentScope || *actualDocumentUri != *currentScope)) {
|
||||
const typename FunctionPtrs<AdapterType>::DocumentType *newDoc = NULL;
|
||||
|
||||
// Have we seen this document before?
|
||||
|
Loading…
x
Reference in New Issue
Block a user