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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 398dab24d8afcf002fff3be85c3e47c2b83688904d2b3577e071ad790398caf0
4
- data.tar.gz: 071ad3e3c2b9d15e6f4aa60fcf09f8fef2260f43e35e9c6a69af04071da2d6a6
3
+ metadata.gz: '0192eda7d50aeced42bcb97c08b150e147bf4da29beabd5f50d507093b89d7f1'
4
+ data.tar.gz: 21e7c12d78f74e7340ede68b5b1cfef72c5564e6e24a1caf9d63c9d819aececf
5
5
  SHA512:
6
- metadata.gz: 7745b15a5b56b12b9a7c2b24ddfe761d37faea4835114722960dbc575bd2ae386780284a2791a1b57d08374cad5a8f5079ff410cefcbedce521c719bc892ab81
7
- data.tar.gz: a6baddb8b5850f6b273506f04fa9e8917338431c3d08ab698f710fa791b7c99e4f4ad5b861c298ca08b9b156342606ca760efb7720d7d1a735f6197faee4807d
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 exactly one side has explicitly configured scopes — during initial
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. The unconfigured side may get scopes later via
71
- # component_scopes, which unregisters/re-registers and retriggers this check.
72
- next if new_scopes_set != existing_scopes_set
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenapiRuby
4
- VERSION = "2.3.0"
4
+ VERSION = "2.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openapi-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morten Hartvig