Closed
Description
This is for grape-swagger (0.20.2)
.
Not sure if this is a bug or an undocumented configuration option, but I am unable to get the version to correctly appear in the JSON file under 'paths' unless I do the following:
add_swagger_documentation(
version: 'v1',
add_version: true,
)
This will produce:
"paths": {
"/api/v1/experiments": {
}
}
The configuration instructions in README.md lists api_version
as a configuration option, but not version
. This is clearly the intended behavior as shown here:
and in tests here:
https://github.com/ruby-grape/grape-swagger/blob/master/spec/lib/path_string_spec.rb
Should the documentation be updated to reflect this?