Commit Graph

23 Commits

Author SHA1 Message Date
Andrei Subbota 3e842a138b
Dependencies update (#948)
* Add spec route helper to complain with Grape >= 2.3.0

* Explicitly add ostruct gem in case of Ruby 3.5

* Update CHANGELOG
2025-02-19 09:25:58 -05:00
Andrei Subbota b75ce7f77d
Allow DELETE to have a params schema definition (#923) 2024-04-25 07:39:46 +02:00
Paul Padier 1a3e3f5889
Allow using nicknames for body definitions (#862)
* Fix typo

* Refactor MoveParams.parent_definition_of_params to use OperationId.build rather than OperationId.manipulate

This means it'll use route nicknames if those are available. It also means route parameters will be used in the definition names.

* Simplify MoveParams.build_body_parameter

MoveParams.build_definition returns the passed in name, so name and referenced_definition were always the same value.

* Fix Rubocop offenses

* Fix old reference to Travis CI in CONTRIBUTING

* Fix CHANGELOG

* Update CHANGELOG and UPGRADING
2022-07-26 09:44:42 +02:00
peter scholz 08b8c2fe05
Prepare release 1.3.0 (#808)
- updates and satisfy rubocop 0.90
- fixes ruby warnings
- adds truffelruby-head to travis
2020-09-05 00:52:12 +02:00
peter scholz 45590937f9
Uses ruby 2.7 (#768)
* Prepare next release

- bump version
- updates travis matrix to newest ruby versions
- removes deprecation warnings of swagger-entity and -representable

* Uses Ruby 2.7

- adepts specs
- changes method signature
- fixes grape version to 1.2.5 -> will be the last release to support it
- adds CHANGELOG entry
2020-01-03 18:33:31 +01:00
Gwénaël Rault 445d2d471d Deeply nested objects (#752)
* Depply nested objects

* Simple hash syntax edit

* Nested objects are not necessary arrays

* fix points test

* Fix test services

* Doesn't require to delete hash or array properties

* Edit nested logic

* Add vehicle test

* Change parameter level is endpoint job

* Array body shouldn't lost array type

* no more parser role

* array of array to array of string

* move format data

* fix formdata return

* Moved params_parser role spec

* Move endpoint spec

* Revert "Add vehicle test"

This reverts commit e5ba63ba26.

* remove redundant interpolation
2019-08-06 14:22:14 +02:00
Daniel Doubrovkine (dB.) @dblockdotorg 224c5f2694 Upgraded and locked Rubocop at 0.60.0. (#719) 2018-10-29 16:32:45 +01:00
Josh Murphy baa86144f4 Deep merge params for definition and add specs (#688) 2018-07-24 11:20:05 +02:00
Josh Murphy 1c1b7eaf09 Fix array of entities with nested entities (#683)
* Update prepare_nested_types to allow for references and update specs

* Add CHANGELOG entry

* Fix lint
2018-07-19 17:28:25 +02:00
Tim Perkins 3493e3ca4a Allow body parameter name to be specified (#607) 2017-05-05 15:43:15 +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 26e6d93c76 issue #584: do not mutate route.path (#585)
- adds changelog entry
2017-02-27 21:59:31 +01:00
peter scholz b5f4d1fcd1 Fixes required property for request definitions (#472)
- adds changelog entry
2016-07-10 14:52:00 -04:00
peter scholz 05c52d3f94 request definitions now inline (#468) (#470) 2016-07-07 11:44:07 -04:00
peter scholz 27ff9f4a57 refoctors building definitions for body params (#467)
- adds base spec
- adds changelog entry
2016-07-06 10:25:57 +02:00
peter scholz 756feb5f70 fixes body array params (#464)
- adds chengelog entry
2016-07-04 17:42:28 +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
Aurel Branzeanu e9adc92e32 Fixed find_definitions_and_params to not add :description to definiti… (#450)
* Fixed find_definitions_and_params to not add :description to definitions if :description is mising on path.
Spec of move_params updated.

* [skip ci] Changelog entry added.
2016-06-07 23:20:21 +02:00
dblock a4bbb7c651 Restored support for Ruby 2.1. 2016-05-06 15:37:41 -04:00
peter scholz 13d0900e86 force usage of entities for response definition (#406) 2016-05-01 12:31:44 +02:00
Peter Scholz 978073116a 2. part of param type `body` handling 2016-04-09 01:19:20 +02:00
Peter Scholz 41b495839c 1. part of param type `body` handling 2016-04-07 02:06:29 +02:00