You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 definitionswagger_rootdo# ...parameter:iddokey:in,:pathkey:name,:idkey:description,'ID of resource to fetch.'key:required,truekey:type,:integerend# ...end# In controllerswagger_path'/cats/{id}'dooperation:getdo# ...parameter:iddokey:description,'ID of Cat record to fetch'endendend
Is there any way to achieve the desired effect?
The text was updated successfully, but these errors were encountered:
# I want to reference this schema in Country, but the id in Country schema is not shownswagger_schema:CountryBasedoproperty:typedokey:type,:stringendproperty:attributesdoproperty:codedokey:type,:stringendproperty:namedokey:type,:stringendproperty:phonedokey:type,:stringendproperty:deleteddokey:type,:booleanendendend# Country does not show idswagger_schema:Countrydoproperty:iddokey:type,:integerkey:format,:int64endkey:'$ref',:CountryBaseend
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.
Is there any way to achieve the desired effect?
The text was updated successfully, but these errors were encountered: