-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from guardian/ag/schema-org-field
Recipe schema org thrift
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
namespace scala com.gu.contentapi.client.model.schemaorg | ||
#@namespace typescript _at_guardian.content_api_models.schemaorg | ||
|
||
struct SchemaOrg { | ||
1: optional list<SchemaRecipe> recipe | ||
} | ||
|
||
struct SchemaRecipe { | ||
1: required string _at_context | ||
2: required string _at_type | ||
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 | ||
17: optional string suitableForDiet | ||
18: optional string cookingMethod | ||
} | ||
|
||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters