rspec-rails-api 0.8.2 → 0.8.3
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/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/rspec/rails/api/open_api_renderer.rb +3 -3
- data/lib/rspec/rails/api/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: a6196620d9b256a8ab9b95a82618671a1b3e12e26b01f1b99238512938fcab25
|
4
|
+
data.tar.gz: d6a70286ac640e5d6f2e0030316b786ecff6642ea3acb1c5ce70d31f6ece3fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e3e62a5a7d3b37c80b5fee37bcaed6a3d8c2cbe5de560b35c14f52e556e87c25eb980d03c7154a1ad809f1b4ef5974faa85d3c7edfd77be03cb8a1bb82c3e1
|
7
|
+
data.tar.gz: cf8e1745a4f9498062dd26495162c3a4f2ac6244850e0142106f0e27f2b4673393caf05bf1a647e55b3424901a02e32b9ab9cea32f387aaf3eac27e855f33709
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -235,11 +235,11 @@ module RSpec
|
|
235
235
|
elsif field.type == :object && field.attributes.is_a?(Symbol)
|
236
236
|
property = { '$ref' => "#/components/schemas/#{field.attributes}" }
|
237
237
|
elsif field.type == :object && field.attributes
|
238
|
-
property = { type: :object, properties: process_entity(field.attributes)[:properties] }
|
238
|
+
property = { type: :object, description: field.description, properties: process_entity(field.attributes)[:properties] }
|
239
239
|
elsif field.type == :array && field.attributes.is_a?(Symbol)
|
240
|
-
property = { type: :array, items: { '$ref' => "#/components/schemas/#{field.attributes}" } }
|
240
|
+
property = { type: :array, description: field.description, items: { '$ref' => "#/components/schemas/#{field.attributes}" } }
|
241
241
|
elsif field.type == :array && field.attributes
|
242
|
-
property = { type: :array, items: process_entity(field.attributes) }
|
242
|
+
property = { type: :array, description: field.description, items: process_entity(field.attributes) }
|
243
243
|
end
|
244
244
|
|
245
245
|
required.push name unless field.required == false
|