Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created October 16, 2023 23:10
Show Gist options
  • Save codigoconjuan/d567c34c4c999f17c85618f272bf59ae to your computer and use it in GitHub Desktop.
Save codigoconjuan/d567c34c4c999f17c85618f272bf59ae to your computer and use it in GitHub Desktop.
Schema en ZOD para Recetas
export const RecipeAPIResponseSchema = z.object({
idDrink: z.string(),
strDrink: z.string(),
strDrinkThumb: z.string(),
strInstructions: z.string(),
strIngredient1: z.string().nullable(),
strIngredient2: z.string().nullable(),
strIngredient3: z.string().nullable(),
strIngredient4: z.string().nullable(),
strIngredient5: z.string().nullable(),
strIngredient6: z.string().nullable(),
strMeasure1: z.string().nullable(),
strMeasure2: z.string().nullable(),
strMeasure3: z.string().nullable(),
strMeasure4: z.string().nullable(),
strMeasure5: z.string().nullable(),
strMeasure6: z.string().nullable(),
});
@TheNormanJames
Copy link

💪

@4drian-sanchez
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment