(spec map[string]any)
| 185 | } |
| 186 | |
| 187 | func marshalSpec(spec map[string]any) ([]byte, error) { |
| 188 | // All nil or empty values to be marshaled as null |
| 189 | if len(spec) == 0 { |
| 190 | return []byte(`null`), nil |
| 191 | } |
| 192 | |
| 193 | return json.Marshal(spec) |
| 194 | } |
no outgoing calls
no test coverage detected