(schema *jsonschema.Schema)
| 828 | } |
| 829 | |
| 830 | func extractDetail(schema *jsonschema.Schema) *string { |
| 831 | schemaTypes := referencedTypes(schema) |
| 832 | slices.Sort(schemaTypes) |
| 833 | return types.CreateStringPointer(strings.Join(schemaTypes, " or ")) |
| 834 | } |
| 835 | |
| 836 | func requiredFieldsText(spacing string, schema *jsonschema.Schema, schemaTypes []string) []string { |
| 837 | if len(schemaTypes) == 1 { |
no test coverage detected