(mediaType: string)
| 176 | mediaType.split(";")[0]?.trim().toLowerCase() ?? ""; |
| 177 | |
| 178 | const isJsonMediaType = (mediaType: string): boolean => { |
| 179 | const normalized = normalizedMediaType(mediaType); |
| 180 | return ( |
| 181 | normalized === "application/json" || normalized.includes("+json") || normalized.includes("json") |
| 182 | ); |
| 183 | }; |
| 184 | |
| 185 | const binaryStringSchema = (schema: Record<string, unknown>): boolean => |
| 186 | stringType(schema) && (schema.format === "binary" || schema.format === "byte"); |
no test coverage detected