swagger-client 3.34.3 → 3.34.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -940,7 +940,7 @@ class SpecMap {
940
940
  if (!traversed) {
941
941
  if (isObj) {
942
942
  // Only store the ref if it exists
943
- if (specmap.allowMetaPatches && objRef) {
943
+ if (specmap.allowMetaPatches && objRef && isSubPath(pathDiscriminator, updatedPath)) {
944
944
  refCache[objRef] = true;
945
945
  }
946
946
  yield* traverse(val, updatedPath, patch);