grape-swagger-entity 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/danger.yml +2 -2
- data/CHANGELOG.md +10 -1
- data/Gemfile +1 -1
- data/lib/grape-swagger/entity/attribute_parser.rb +2 -1
- data/lib/grape-swagger/entity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: add308a25b9c529ea00b8527b3b435738f226a9af7c25e95aac0725c672b714b
|
4
|
+
data.tar.gz: a8e5cc48c165535bc489c8cff7879e5ad6cf4650996a8f9838a073bd1bfc3840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fd8fc5aff26713b93abf4290ce6c56054c3e497a860c9873c8a6675b1769807f6a236cdbe62961fae6891a4667fbd250579db4f2c5c82ef2875713d8917e90c
|
7
|
+
data.tar.gz: 54248e88317f33f1a12d2f7ede6b5f897e2b3e5ea21927b1fc4a078358a46cb6d36abff7455cebc11d066c9fd75421b044686dfb1417d76312953f9b6de96b54
|
@@ -5,13 +5,13 @@ jobs:
|
|
5
5
|
danger:
|
6
6
|
runs-on: ubuntu-latest
|
7
7
|
steps:
|
8
|
-
- uses: actions/checkout@
|
8
|
+
- uses: actions/checkout@v4
|
9
9
|
with:
|
10
10
|
fetch-depth: 100
|
11
11
|
- name: Set up Ruby
|
12
12
|
uses: ruby/setup-ruby@v1
|
13
13
|
with:
|
14
|
-
ruby-version: 2
|
14
|
+
ruby-version: 3.2
|
15
15
|
bundler-cache: true
|
16
16
|
rubygems: latest
|
17
17
|
- name: Run Danger
|
data/CHANGELOG.md
CHANGED
@@ -8,13 +8,22 @@
|
|
8
8
|
|
9
9
|
* Your contribution here.
|
10
10
|
|
11
|
+
### 0.5.3 (2024/02/02)
|
12
|
+
|
13
|
+
#### Features
|
14
|
+
|
15
|
+
* [#64](https://github.com/ruby-grape/grape-swagger-entity/pull/64): Pass extension documentation into schema - [@numbata](https://github.com/numbata).
|
16
|
+
|
17
|
+
#### Fixes
|
18
|
+
|
19
|
+
* [#66](https://github.com/ruby-grape/grape-swagger-entity/pull/66): Fix danger GHA - [@mscrivo](https://github.com/mscrivo).
|
20
|
+
|
11
21
|
### 0.5.2 (2023/07/07)
|
12
22
|
|
13
23
|
#### Fixes
|
14
24
|
|
15
25
|
* [#60](https://github.com/ruby-grape/grape-swagger-entity/pull/60): Examples on arrays should be directly on the property, not on the item - [@collinsauve](https://github.com/collinsauve).
|
16
26
|
* [#61](https://github.com/ruby-grape/grape-swagger-entity/pull/61): Migrate from Travis to GHA for CI - [@mscrivo](https://github.com/mscrivo).
|
17
|
-
* Your contribution here.
|
18
27
|
|
19
28
|
### 0.5.1 (2020/06/30)
|
20
29
|
|
data/Gemfile
CHANGED
@@ -22,6 +22,6 @@ gem 'grape-swagger', git: 'https://github.com/ruby-grape/grape-swagger.git'
|
|
22
22
|
|
23
23
|
group :test do
|
24
24
|
gem 'grape-entity', ENV.fetch('GRAPE_ENTITY', '0.6.1')
|
25
|
-
gem 'ruby-grape-danger', '~> 0.2.
|
25
|
+
gem 'ruby-grape-danger', '~> 0.2.1', require: false
|
26
26
|
gem 'simplecov', require: false
|
27
27
|
end
|
@@ -19,6 +19,7 @@ module GrapeSwagger
|
|
19
19
|
entity_model_type = entity_model_type(name, entity_options)
|
20
20
|
return entity_model_type unless documentation
|
21
21
|
|
22
|
+
add_extension_documentation(entity_model_type, documentation)
|
22
23
|
add_array_documentation(entity_model_type, documentation) if documentation[:is_array]
|
23
24
|
|
24
25
|
entity_model_type
|
@@ -74,7 +75,7 @@ module GrapeSwagger
|
|
74
75
|
|
75
76
|
def data_type_from(documentation)
|
76
77
|
documented_type = documentation[:type]
|
77
|
-
documented_type ||=
|
78
|
+
documented_type ||= documentation[:documentation] && documentation[:documentation][:type]
|
78
79
|
|
79
80
|
data_type = GrapeSwagger::DocMethods::DataType.call(documented_type)
|
80
81
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-swagger-entity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Zaitsev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape-entity
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
90
|
+
rubygems_version: 3.5.3
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Grape swagger adapter to support grape-entity object parsing
|