(m map[string]V)
| 31 | } |
| 32 | |
| 33 | func 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 | |
| 43 | func newPrimitiveSchema(paramType PrimitiveType) *openapi3.Schema { |
| 44 | switch paramType { |