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
{{ message }}
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
I do not have operationId in every OperationObject since it's not required. When I expand an operation after another, the model and sample value displayed are of the previous operation. This happens for all of the operations I expanded later. All of them display the same model and sample value.
I find it's because it uses operationId in the key of model and sample collection:
So when operationId is not specified, id will start with "undefined", all operations in the same section will share the same key, and no new model and sample value will be generated.
The text was updated successfully, but these errors were encountered:
All generators i've tested generate an operationId for all operations. As described in spec lots of tools use this attribute as unique identifier for operations so i think it is highly recommended to define one.
I take your point into account and will think about a fix in further version.
Regards
Do you mean those tools that generates the spec from java source code with annotations? It's true that people don't have to worry about operationId in this case, but for those who author a spec separately, the operationId is somewhat redundant because most operations in a restful service are already well identified by its method, url and parameters thus no need to give it another camelCased name. So I think it's pleasant to allow people omit this property.
Thank you for taking this into account.
I do not have
operationId
in everyOperationObject
since it's not required. When I expand an operation after another, the model and sample value displayed are of the previous operation. This happens for all of the operations I expanded later. All of them display the same model and sample value.I find it's because it uses
operationId
in the key of model and sample collection:angular-swagger-ui/src/scripts/controllers/swagger-ui-controller.js
Line 229 in f81f0de
angular-swagger-ui/src/scripts/controllers/swagger-ui-controller.js
Line 238 in f81f0de
So when
operationId
is not specified,id
will start with"undefined"
, all operations in the same section will share the same key, and no new model and sample value will be generated.The text was updated successfully, but these errors were encountered: