mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
fix meal validation
This commit is contained in:
parent
29db641392
commit
fc022e024d
3 changed files with 11 additions and 14 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
22
package.json
22
package.json
|
|
@ -13,27 +13,27 @@
|
||||||
"lint:fix": "eslint . --fix"
|
"lint:fix": "eslint . --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/eslint": "^0.7.4",
|
"@nuxt/eslint": "^0.7.6",
|
||||||
"@nuxt/image": "^1.6.0",
|
"@nuxt/image": "^1.10.0",
|
||||||
"@nuxtjs/robots": "5.0.1",
|
"@nuxtjs/robots": "5.0.1",
|
||||||
"@trpc/client": "^10.45.2",
|
"@trpc/client": "^10.45.2",
|
||||||
"@trpc/server": "^10.45.2",
|
"@trpc/server": "^10.45.2",
|
||||||
"@vueuse/nuxt": "12.0.0",
|
"@vueuse/nuxt": "12.0.0",
|
||||||
"nuxt": "^3.14.1592",
|
"nuxt": "^3.16.2",
|
||||||
"nuxt-icon": "^0.6.10",
|
"nuxt-icon": "^0.6.10",
|
||||||
"trpc-nuxt": "^0.10.22",
|
"trpc-nuxt": "^0.10.22",
|
||||||
"vue": "^3.4.21",
|
"vue": "^3.5.13",
|
||||||
"vue-router": "^4.3.0",
|
"vue-router": "^4.5.0",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.24.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/typography": "^0.5.13",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.21",
|
||||||
"daisyui": "^4.12.23",
|
"daisyui": "^4.12.24",
|
||||||
"nuxt-delay-hydration": "^1.3.8",
|
"nuxt-delay-hydration": "^1.3.8",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.5.3",
|
||||||
"prettier": "3.4.2",
|
"prettier": "3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.9",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
"tailwindcss": "^3.4.17"
|
"tailwindcss": "^3.4.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ export type Recipe = {
|
||||||
const mealSchema = z.object({
|
const mealSchema = z.object({
|
||||||
idMeal: z.string(),
|
idMeal: z.string(),
|
||||||
strMeal: z.string(),
|
strMeal: z.string(),
|
||||||
strDrinkAlternate: z.string().nullable(),
|
|
||||||
strCategory: z.string(),
|
strCategory: z.string(),
|
||||||
strArea: z.string(),
|
strArea: z.string(),
|
||||||
strInstructions: z.string(),
|
strInstructions: z.string(),
|
||||||
|
|
@ -63,8 +62,6 @@ const mealSchema = z.object({
|
||||||
strMeasure20: z.string().nullish(),
|
strMeasure20: z.string().nullish(),
|
||||||
strSource: z.string().nullish(),
|
strSource: z.string().nullish(),
|
||||||
strImageSource: z.string().nullable(),
|
strImageSource: z.string().nullable(),
|
||||||
strCreativeCommonsConfirmed: z.string().nullable(),
|
|
||||||
dateModified: z.string().optional().nullable(),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const apiResponseSchema = z.object({
|
export const apiResponseSchema = z.object({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue