(schema map[string]any)
| 397 | } |
| 398 | |
| 399 | func generateArrayExample(schema map[string]any) any { |
| 400 | items, ok := schema["items"].(map[string]any) |
| 401 | if !ok { |
| 402 | return []any{} |
| 403 | } |
| 404 | itemExample := generateExampleFromSchema(items) |
| 405 | if itemExample == nil { |
| 406 | return []any{} |
| 407 | } |
| 408 | return []any{itemExample} |
| 409 | } |
| 410 | |
| 411 | func generateObjectExample(schema map[string]any) any { |
| 412 | result := make(map[string]any) |
no test coverage detected