Commit Graph

19 Commits

Author SHA1 Message Date
Dhruv Paranjape e7856de6d0
Set default parameter location based on consumes (#927)
* Set default parameter location based on consumes

* fix rubocop warnings and update todos.

* fix spec

* change rubocop fix

* correct PR number in changelog

---------

Co-authored-by: Eugene Lim <limzhiweieugene@gmail.com>
2024-05-10 12:42:54 +02:00
Jean-Francis Bastien 565f8e9a29
Don't overwrite model description with the route destription. (#804) 2020-09-03 22:43:49 +02:00
peter scholz 1ce0b5f795 Make usage of grape >= 1.3 (#777)
* Replaces Virtus by dry-type.

* Makes usage of rack ~> 2.1

* Adds changelog entry.

- adapts travis config
2020-02-09 23:30:21 +01:00
Fotos Georgiadis 5e2329e339 Skip empty parameters and tags arrays (#731)
* Skip empty parameters arrays

* Skip empty tags arrays

* Update CHANGELOG
2018-12-07 20:29:22 +01:00
Fotos Georgiadis 4777b87ad0 Allow empty security array for endpoints (#729) 2018-12-07 10:52:01 -05:00
Daniel Doubrovkine (dB.) @dblockdotorg b9beec2c9f Fix: corrected termsOfService field name in additional info. (#720) 2018-10-29 20:24:51 +01:00
Owen Ben Davies 3057a2c9ec Make route summary optional (#667)
Resolves #661

Currently if no summary is provided, grape-swagger uses the description.
This creates needless duplicate fields. As summary is an optional field
this changes functionality so summary is only populated if specifically
needed.

Reference https://swagger.io/specification/
2018-03-17 14:45:07 +01:00
peter scholz 7005eff9a8
updates rubocop; corrects represntable specs (#671)
* uses updated rubocop; adopts code

* corrects representable specs; align it with entity specs
2018-03-17 12:30:37 +01:00
Mitsutaka Mimura 46dffa3d28 use latest ruby version in CI (#600)
* use latest ruby version in CI

* correct rubocop

* update rubocop version
2017-04-06 21:26:40 +02:00
peter scholz 1ede5c4f7f prepare 0.27.0 (#598)
- updates dependencies
- makes rubocop 0.48 happy
2017-03-28 11:15:33 +02:00
peter scholz 2df7dbeaf1 issue #590: fixes rubocop offences (#595) 2017-03-08 09:32:31 +01:00
peter scholz 57947d308e accepts string as entity (#527)
- adds changelog entry
- requires min version of rubocop
2016-10-31 12:14:08 +01:00
Wojciech Korzeniowski 7061fd1b75 Response model can have required attributes (#521)
* Response model can have required attributes

* Reorganize implementation

* Fix RuboCop offences

* Last touch of refactor
2016-10-14 11:56:33 +02:00
Sergey A. Glukhov d7b7465a95 fix incorrect data type linking for request params of entity types (#511) 2016-10-13 23:06:03 +02:00
Andrew Schuster 611572f3cb Include documented Hashes (#454)
* Fix logic for mapping Hash and Array objects to refs

* Add tests to account for documented Hashes and Arrays

* Do not include readOnly params in request definitions

* Test for new documentation behavior

* Update changelog [ci skip]

* Use respond_to? instead of try for earlier compliance

* Use proper url for changelog
2016-06-14 08:12:46 -04:00
Andrew Schuster dd4ba4a1af Add 'summary' for further object compliance with OpenAPI v2 (#434) 2016-05-23 09:23:16 +02:00
Sergey Nartimov 9bbac46776 Support recursive models
The model can reference itself in some cases, e.g., when representing a
tree structure.
2016-05-11 19:49:45 +03:00
dblock 76025377bd Upgraded RuboCop to 0.40.0. 2016-05-10 16:01:13 -04:00
Kirill Zaitsev f4a0c15687 Move model parsing logic outside grape-swagger 2016-05-10 21:59:15 +03:00