fix meal validation

This commit is contained in:
Ruidy 2025-04-09 09:14:54 +02:00
parent 29db641392
commit fc022e024d
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
3 changed files with 11 additions and 14 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -13,27 +13,27 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@nuxt/eslint": "^0.7.4",
"@nuxt/image": "^1.6.0",
"@nuxt/eslint": "^0.7.6",
"@nuxt/image": "^1.10.0",
"@nuxtjs/robots": "5.0.1",
"@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2",
"@vueuse/nuxt": "12.0.0",
"nuxt": "^3.14.1592",
"nuxt": "^3.16.2",
"nuxt-icon": "^0.6.10",
"trpc-nuxt": "^0.10.22",
"vue": "^3.4.21",
"vue-router": "^4.3.0",
"zod": "^3.23.8"
"vue": "^3.5.13",
"vue-router": "^4.5.0",
"zod": "^3.24.2"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"autoprefixer": "^10.4.19",
"daisyui": "^4.12.23",
"@tailwindcss/typography": "^0.5.16",
"autoprefixer": "^10.4.21",
"daisyui": "^4.12.24",
"nuxt-delay-hydration": "^1.3.8",
"postcss": "^8.4.38",
"postcss": "^8.5.3",
"prettier": "3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^3.4.17"
}
}

View file

@ -14,7 +14,6 @@ export type Recipe = {
const mealSchema = z.object({
idMeal: z.string(),
strMeal: z.string(),
strDrinkAlternate: z.string().nullable(),
strCategory: z.string(),
strArea: z.string(),
strInstructions: z.string(),
@ -63,8 +62,6 @@ const mealSchema = z.object({
strMeasure20: z.string().nullish(),
strSource: z.string().nullish(),
strImageSource: z.string().nullable(),
strCreativeCommonsConfirmed: z.string().nullable(),
dateModified: z.string().optional().nullable(),
});
export const apiResponseSchema = z.object({