(schema map[string]any)
| 387 | } |
| 388 | |
| 389 | func generateNumberExample(schema map[string]any) any { |
| 390 | if examples, ok := schema["examples"].([]any); ok && len(examples) > 0 { |
| 391 | return examples[0] |
| 392 | } |
| 393 | if defaultVal, ok := schema["default"]; ok { |
| 394 | return defaultVal |
| 395 | } |
| 396 | return 42 |
| 397 | } |
| 398 | |
| 399 | func generateArrayExample(schema map[string]any) any { |
| 400 | items, ok := schema["items"].(map[string]any) |
no outgoing calls
no test coverage detected