openapi-ruby 2.3.0 → 2.3.1
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.
- checksums.yaml +4 -4
- data/lib/openapi_ruby/components/registry.rb +4 -4
- data/lib/openapi_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0192eda7d50aeced42bcb97c08b150e147bf4da29beabd5f50d507093b89d7f1'
|
|
4
|
+
data.tar.gz: 21e7c12d78f74e7340ede68b5b1cfef72c5564e6e24a1caf9d63c9d819aececf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1656c5d6fc9c042c4a2fd1fc9406378430589c87c8a545a05b3eb493c9ebed1cb4238e7ed5053f05c23e8c22bcd0fffd7932fe42aebde48f299eb0ab570edef
|
|
7
|
+
data.tar.gz: 363f1dea3ab2c8b40bba3c3969117db68017a0cb29d6b53a1b16249585703ed6dd7bd57fc8e78b247a61c1668b737e4929f9ef19f14a19dcf9951336e3710b3f
|
|
@@ -65,11 +65,11 @@ module OpenapiRuby
|
|
|
65
65
|
existing_scopes = existing._component_scopes
|
|
66
66
|
existing_scopes_set = existing._component_scopes_explicitly_set
|
|
67
67
|
|
|
68
|
-
# Skip when
|
|
68
|
+
# Skip when scopes haven't been explicitly configured yet — during initial
|
|
69
69
|
# loading, components are registered with empty default scopes before the Loader
|
|
70
|
-
# assigns inferred scopes.
|
|
71
|
-
#
|
|
72
|
-
next
|
|
70
|
+
# assigns inferred scopes. Only check for duplicates when both sides have
|
|
71
|
+
# explicitly set their scopes.
|
|
72
|
+
next unless new_scopes_set && existing_scopes_set
|
|
73
73
|
|
|
74
74
|
if scopes_overlap?(new_scopes, existing_scopes)
|
|
75
75
|
raise DuplicateComponentError,
|
data/lib/openapi_ruby/version.rb
CHANGED