* 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
It may be possible that API classes are not yet loaded
when the oapi rake tasks are initialized in Rakefile.
Add a possibility to pass class name as a string to not mess with class loader configuration.
Co-authored-by: Mikhail Doronin <mikhail.doronin@capitainetrain.com>
* 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
* GrapeSwagger::DocMethods::Extensions breaks the contract of
Kernel#method
This causes code inspection tools and development workflows to break
and may cause developers to choose not to use the gem.
* add test for method introspection on GrapeSwagger::DocMethods::Extensions
* fix ci lint failure
Previously this is what was generated:
`"attr":{"type":"array","items":{"type":"object","properties":{"":{"type":"string"}}}}`
instead of
`"attr":{"type":"array","items":{"type":"string"}}`
in case this attribute was nested in a Hash attribute with "body" in `param_type`
* 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
* Add an option to add braces to array params
* Add changelog entry
* Prevent false detections of array params
* Extract params parser in separate class
* resolved some failing tests due to separated param parsing class, corrected rubocop warning, added documentation
* 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
* multi type parameter default to first type
when :type and :default are provided in a documenation hash they override grape :type and :default
* rubocop style
* changelog style
* test multi type only if grape >= 0.14
* rubocop style
* test for muli type with grape<0.14
* 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.