-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
In order to clean up my documentation I have used parameter referencing as much as possible.
However it seems that there's no easy way of overriding attributes that are set in the parameter when it's defined.
An example is that I create the following id parameter and reference it throughout my documentation - but I would like to be more specific in the description.
This however seems to go for all keys and not just description.
# Swagger definition
swagger_root do
# ...
parameter :id do
key :in, :path
key :name, :id
key :description, 'ID of resource to fetch.'
key :required, true
key :type, :integer
end
# ...
end
# In controller
swagger_path '/cats/{id}' do
operation :get do
# ...
parameter :id do
key :description, 'ID of Cat record to fetch'
end
end
endIs there any way to achieve the desired effect?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels