openapi-ruby 2.6.0 → 2.6.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: 624a9de17a27fc482cf818dde3e816f4a4117f75abe79360acc21ebf6adc3c94
4
- data.tar.gz: f886aa70bf6d15d26a88ed99abda4a7440eb6d3f8304a6759896e28e6dfeb137
3
+ metadata.gz: 184a7fbab1cd65b421542bd525d0caece4c5ca9f86fba8902a73566935a34b56
4
+ data.tar.gz: 1999bdb9cfa6cb89804a45bc8ace6d820a55e4cc14d01fd9b7b12f8094d05098
5
5
  SHA512:
6
- metadata.gz: 54139198ea02942afe69bce8b677bd582ea60e303aece0cbca150b04583a2bc5688f8a56e3dafbf6d2ee4cba87d10396fff54996956d8ad77ab4db109a849fd6
7
- data.tar.gz: 31489283c2805df247155d08ce89575015342429a3d507c5b44549a09baa853646ede82288ca5ecc443d660bcfa93a34036e58fdc872757688471a2e07d804fe
6
+ metadata.gz: c3338c403c393bb1ae5ef93e15b8045f0e80ff9c3f797343089cff850a6218eb59c2eebc93f99a839d6d355cea25f29dd87f49281a04623a1c8e87a243c4124c
7
+ data.tar.gz: f191b3fdf19fe89e7041734d017854ed94d2197d03ce932742fb9d03db42b2bce6f512bdc1dd5cc8ddd2fd76f85c99c5cb0b89d9446b837ce8d070965be7b2b4
@@ -28,7 +28,7 @@ module OpenapiRuby
28
28
  end
29
29
 
30
30
  def set_security(security)
31
- @data["security"] = security if security.any?
31
+ @data["security"] = security
32
32
  end
33
33
 
34
34
  def set_tags(tags)
@@ -34,8 +34,8 @@ module OpenapiRuby
34
34
  def to_openapi
35
35
  result = {}
36
36
 
37
- result["parameters"] = @path_parameters if @path_parameters.any?
38
-
37
+ # Path-level parameters are already copied into each operation (line 27),
38
+ # so we don't output them at the path level to avoid duplicates.
39
39
  @operations.each do |verb, op|
40
40
  result[verb] = op.to_openapi
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenapiRuby
4
- VERSION = "2.6.0"
4
+ VERSION = "2.6.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.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morten Hartvig