Skip to content

Add recipe related fake data #31

Description

@mainrs

I'm currently needing fake data for recipe and ingredients, including separated lists for vegetables, fruits, nuts etc.

I'd imagine something like this:

enum Category {
  Fruit,
  Vegetable,
  Nut,
  // etc...
}

Ingredient(category: Option<Category>);
Ingredients(count: usize, category: Option<Category>);
Recipe();
Recipes(count: usize);

As of now, I do not have recipe steps implemented but might add them later on. One thing that might actually be better would be moving the Ingredient call to a separate call like Fruit(), Vegetable(), Nut() and have Recipe re-use them. That way, they are not coupled to recipes and should make it clear that they can be used by their own.

If there is interest I can open a PR so you can merge my additions back into master.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions