(schema map[string]any)
| 805 | } |
| 806 | |
| 807 | func getRequired(schema map[string]any) map[string]bool { |
| 808 | req := make(map[string]bool) |
| 809 | reqList, ok := schema["required"].([]any) |
| 810 | if !ok { |
| 811 | return req |
| 812 | } |
| 813 | for _, r := range reqList { |
| 814 | if s, ok := r.(string); ok { |
| 815 | req[s] = true |
| 816 | } |
| 817 | } |
| 818 | return req |
| 819 | } |
| 820 | |
| 821 | func cmdRulesDelete(c *apiClient) { |
| 822 | rules, err := c.getRules() |