MCPcopy Create free account
hub / github.com/cli/cli / routeMethods

Function routeMethods

script/ghmock/schemacmd.go:328–335  ·  view source on GitHub ↗
(item *openapi3.PathItem)

Source from the content-addressed store, hash-verified

326}
327
328func 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.

Callers 1

describeRESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected