(schema map[string]any)
| 378 | } |
| 379 | |
| 380 | func generateStringExample(schema map[string]any) any { |
| 381 | if enum, ok := schema["enum"].([]any); ok && len(enum) > 0 { |
| 382 | if str, ok := enum[0].(string); ok { |
| 383 | return str |
| 384 | } |
| 385 | } |
| 386 | return "string" |
| 387 | } |
| 388 | |
| 389 | func generateNumberExample(schema map[string]any) any { |
| 390 | if examples, ok := schema["examples"].([]any); ok && len(examples) > 0 { |
no outgoing calls
no test coverage detected