const z = require("zod") module.exports = { POST: { headers: z.object({ "content-type": z.string() .regex(/application\/json|multipart\/form-data/i, { message: "Content-Type must be application/json or multipart/form-data" }), "authorization": z.string().min(1, { message: "Authorization header is required." }) }), body: z.object({ variant: z.enum(["classic", "slim"], { errorMap: () => ({ message: "Variant must be 'classic' or 'slim'." }) }), url: z.string().url().optional() }).refine(data => { return true; }), error: { code: 400, message: "Invalid skin data, URL or variant.", error: "IllegalArgumentException" } } }