rspec-rails-api 0.8.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f3ec1cf7d649accd5699f84d2f2e7162e830bc4071b50433dc179d69028451d
4
- data.tar.gz: b612884d3574e170f737fc080e58b19f7ca4485104b14a3ca884570e5e3ac0a5
3
+ metadata.gz: a6196620d9b256a8ab9b95a82618671a1b3e12e26b01f1b99238512938fcab25
4
+ data.tar.gz: d6a70286ac640e5d6f2e0030316b786ecff6642ea3acb1c5ce70d31f6ece3fde
5
5
  SHA512:
6
- metadata.gz: 35cd6e4ed48cd3cf05e950c8a98dcc030efdf82da422803818082d4af7eeb936bac6a6ae6341fc6495dbc944797212750fc14384d3aa73e78e81e0588724d01f
7
- data.tar.gz: 01daf64801e027024566367126f4f2a3767be1957932d540384517e9a1369296bfa649b5473badab670969416e380f8ab6532f88c2deffb4790b6e750d7afbda
6
+ metadata.gz: f1e3e62a5a7d3b37c80b5fee37bcaed6a3d8c2cbe5de560b35c14f52e556e87c25eb980d03c7154a1ad809f1b4ef5974faa85d3c7edfd77be03cb8a1bb82c3e1
7
+ data.tar.gz: cf8e1745a4f9498062dd26495162c3a4f2ac6244850e0142106f0e27f2b4673393caf05bf1a647e55b3424901a02e32b9ab9cea32f387aaf3eac27e855f33709
data/CHANGELOG.md CHANGED
@@ -18,6 +18,18 @@ Maintenance, in case of rework, dependencies change
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [0.8.3] - 2024-11-22
22
+
23
+ ### Fixed
24
+
25
+ - Fixed documentation generation of the description on objects and arrays
26
+
27
+ ## [0.8.2] - 2024-11-22
28
+
29
+ ### Fixed
30
+
31
+ - Fixed documentation generation of object's attributes when they are not passed as reference.
32
+
21
33
  ## [0.8.1] - 2024-10-16
22
34
 
23
35
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-rails-api (0.8.1)
4
+ rspec-rails-api (0.8.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -234,10 +234,12 @@ module RSpec
234
234
  property[:items] = { type: field.attributes }
235
235
  elsif field.type == :object && field.attributes.is_a?(Symbol)
236
236
  property = { '$ref' => "#/components/schemas/#{field.attributes}" }
237
+ elsif field.type == :object && field.attributes
238
+ property = { type: :object, description: field.description, properties: process_entity(field.attributes)[:properties] }
237
239
  elsif field.type == :array && field.attributes.is_a?(Symbol)
238
- property = { type: :array, items: { '$ref' => "#/components/schemas/#{field.attributes}" } }
240
+ property = { type: :array, description: field.description, items: { '$ref' => "#/components/schemas/#{field.attributes}" } }
239
241
  elsif field.type == :array && field.attributes
240
- property = { type: :array, items: process_entity(field.attributes) }
242
+ property = { type: :array, description: field.description, items: process_entity(field.attributes) }
241
243
  end
242
244
 
243
245
  required.push name unless field.required == false
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module Rails
5
5
  module Api
6
- VERSION = '0.8.1'
6
+ VERSION = '0.8.3'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Tancoigne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-16 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Create acceptance tests to check the Rails API responses and generate
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.4.15
72
+ rubygems_version: 3.3.7
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Tests standard Rails API responses and generate doc