(item *openapi3.PathItem)
| 326 | } |
| 327 | |
| 328 | func routeMethods(item *openapi3.PathItem) []string { |
| 329 | var methods []string |
| 330 | for m := range item.Operations() { |
| 331 | methods = append(methods, m) |
| 332 | } |
| 333 | sort.Strings(methods) |
| 334 | return methods |
| 335 | } |
| 336 | |
| 337 | // documentedStatuses lists a response's status codes in numeric order, with |
| 338 | // "default" last. |