MCPcopy Create free account
hub / github.com/a-h/rest / getSortedKeys

Function getSortedKeys

schema.go:33–41  ·  view source on GitHub ↗
(m map[string]V)

Source from the content-addressed store, hash-verified

31}
32
33func getSortedKeys[V any](m map[string]V) (op []string) {
34 for k := range m {
35 op = append(op, k)
36 }
37 sort.Slice(op, func(i, j int) bool {
38 return op[i] < op[j]
39 })
40 return op
41}
42
43func newPrimitiveSchema(paramType PrimitiveType) *openapi3.Schema {
44 switch paramType {

Callers 1

createOpenAPIMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected