Skip to content

Commit

Permalink
Recipe schema thrift fields
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickobrien committed Mar 1, 2024
1 parent fc2e9f7 commit c5a8199
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion models/src/main/thrift/content/schemaorg.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,29 @@ struct SchemaRecipe {
3: optional string name
4: optional string description
5: optional string image
}
6: optional string datePublished
7: optional string url
8: optional list<string> recipeCategory
9: optional list<string> recipeCuisine
10: optional list<string> recipeIngredient
11: optional list<RecipeStep> recipeInstructions
12: optional list<string> recipeYield
13: optional string prepTime
14: optional string cookTime
15: optional string totalTime
16: optional AuthorInfo author
}

struct RecipeStep {
1: required string _at_type
2: required string text
3: optional string name
4: optional string url
5: optional list<string> image
}

struct AuthorInfo {
1: required string _at_type
2: required string name
3: optional list<string> sameAs
}

0 comments on commit c5a8199

Please sign in to comment.