(schema: Record<string, unknown>)
| 167 | schema.type === "string" || (Array.isArray(schema.type) && schema.type.includes("string")); |
| 168 | |
| 169 | const numericType = (schema: Record<string, unknown>): boolean => |
| 170 | schema.type === "integer" || |
| 171 | schema.type === "number" || |
| 172 | (Array.isArray(schema.type) && |
| 173 | (schema.type.includes("integer") || schema.type.includes("number"))); |
| 174 | |
| 175 | const normalizedMediaType = (mediaType: string): string => |
| 176 | mediaType.split(";")[0]?.trim().toLowerCase() ?? ""; |