You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,10 @@
2
2
3
3
#### Features
4
4
5
+
*[#524](https://github.com/ruby-grape/grape-swagger/pull/524): Use route tags for global tag set - [@LeFnord](https://github.com/LeFnord).
6
+
*[#523](https://github.com/ruby-grape/grape-swagger/pull/523): Allow specifying custom tags at the route level - [@jordanfbrown](https://github.com/jordanfbrown).
5
7
*[#520](https://github.com/ruby-grape/grape-swagger/pull/520): Response model can have required attributes - [@WojciechKo](https://github.com/WojciechKo).
6
8
*[#510](https://github.com/ruby-grape/grape-swagger/pull/510): Use 'token_owner' instead of 'oauth_token' on Swagger UI endpoint authorization. - [@texpert](https://github.com/texpert).
7
-
*[#523](https://github.com/ruby-grape/grape-swagger/pull/523): Allow specifying custom tags at the route level. - [@jordanfbrown](https://github.com/jordanfbrown).
* [Overridingdata type of the parameter](#overriding-type-of-param)
399
+
* [Multiple types](#multiple-types)
400
+
* [Arrayof data type](#array-type)
401
401
* [CollectionFormat](#collection-format)
402
402
* [Hiding parameters](#hiding-parameters)
403
403
* [Setting a Swagger default value](#default-value)
@@ -530,9 +530,9 @@ get '/kittens' do
530
530
531
531
532
532
<a name="overriding-param-type" />
533
-
#### Overriding param type
533
+
#### Overriding parameter type
534
534
535
-
You can override paramType in POST|PUT methods to query, using the documentation hash.
535
+
You can override paramType, using the documentation hash. See [parameter object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameter-object) for available types.
536
536
537
537
```ruby
538
538
params do
@@ -543,8 +543,9 @@ post :act do
543
543
end
544
544
```
545
545
546
-
<a name="overriding-param-types" />
547
-
#### Overriding param types
546
+
547
+
<a name="overriding-type-of-param" />
548
+
#### Overriding data type of the parameter
548
549
549
550
You can override type, using the documentation hash.
550
551
@@ -569,9 +570,9 @@ end
569
570
570
571
571
572
<a name="multiple-types" />
572
-
#### Multi types
573
+
#### Multiple types
573
574
574
-
By default when you set multi types, the first type is selected as swagger type
575
+
By default when you set multiple types, the first type is selected as swagger type
Copy file name to clipboardExpand all lines: UPGRADING.md
+4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
Upgrading Grape-swagger
2
2
=======================
3
3
4
+
### Upgrading to >= 0.25.0
5
+
6
+
The global tag set now only includes tags for documented routes. This behaviour has impact in particular for calling the documtation of a specific route.
7
+
4
8
### Upgrading to >= 0.21.0
5
9
6
10
With grape >= 0.21.0, `grape-entity` support moved to separate gem `grape-swagger-entity`, if you use grape entity, update your Gemfile:
0 commit comments