zero-rails_openapi 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/open_api/dsl/api.rb +2 -2
- data/lib/open_api/dsl/components.rb +2 -2
- data/lib/open_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c5097304de83d6bf030739ecaa8286afa404cb
|
4
|
+
data.tar.gz: 5eb1fdb277d987bea4f7248e1ca5a8b4eb19936a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95628e9b15a0f30adfc229625c6d5813778dc5b6d13959c515e8afbeddc00ae8d35a635caf93c4328773ce2aaff6a859f78276c70af582fd797acdba6842462a
|
7
|
+
data.tar.gz: 32891874cebfc0c4977d0ef550cf24a874493a184d554282cce16a2795079cf68c645ac78039ef9124745293d14914c2b43a6a472621a4187c8ab066a878dc17
|
data/README.md
CHANGED
@@ -452,7 +452,7 @@
|
|
452
452
|
|
453
453
|
```ruby
|
454
454
|
# ** Method Signature
|
455
|
-
response code, desc, media_type = nil, data: { }
|
455
|
+
response code, desc, media_type = nil, data: { }, **options
|
456
456
|
# ** Usage
|
457
457
|
resp 200, 'success', :json, data: { name: 'test' }
|
458
458
|
response 200, 'query result', :pdf, data: File
|
data/lib/open_api/dsl/api.rb
CHANGED
@@ -95,8 +95,8 @@ module OpenApi
|
|
95
95
|
form data: { name => schema }
|
96
96
|
end
|
97
97
|
|
98
|
-
def response code, desc, media_type = nil, data: { }
|
99
|
-
(self[:responses][code] ||= ResponseObj.new(desc)).absorb(desc, media_type, { data: data })
|
98
|
+
def response code, desc, media_type = nil, data: { }, **options
|
99
|
+
(self[:responses][code] ||= ResponseObj.new(desc)).absorb(desc, media_type, { data: data, **options })
|
100
100
|
end
|
101
101
|
|
102
102
|
alias_method :resp, :response
|
@@ -49,8 +49,8 @@ module OpenApi
|
|
49
49
|
arrow_enable :body
|
50
50
|
arrow_enable :body!
|
51
51
|
|
52
|
-
def response component_key, desc, media_type = nil, data: { }
|
53
|
-
(self[:responses][component_key] ||= ResponseObj.new(desc)).absorb(desc, media_type, { data: data })
|
52
|
+
def response component_key, desc, media_type = nil, data: { }, **options
|
53
|
+
(self[:responses][component_key] ||= ResponseObj.new(desc)).absorb(desc, media_type, { data: data, **options })
|
54
54
|
end
|
55
55
|
|
56
56
|
alias_method :resp, :response
|
data/lib/open_api/version.rb
CHANGED