Skip to content

Commit

Permalink
testing updates for bringing schema.org metadata into Concierge output
Browse files Browse the repository at this point in the history
  • Loading branch information
fredex42 committed Feb 19, 2024
1 parent d77f319 commit 199bf6d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions models/src/main/thrift/content/schemaorg.thrift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace scala com.gu.contentapi.client.model.schemaorg
#@namespace typescript _at_guardian.content_api_models.schemaorg


struct SchemaRecipe {
1: required string _at_context
2: required string _at_type
3: optional string name
4: optional string description
5: optional string image
}
9 changes: 9 additions & 0 deletions models/src/main/thrift/content/v1.thrift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include "story_package_article.thrift"
include "contentatom.thrift"
include "entity.thrift"
include "schemaorg.thrift"

namespace scala com.gu.contentapi.client.model.v1
#@namespace typescript _at_guardian.content_api_models.v1
Expand Down Expand Up @@ -1650,6 +1651,10 @@ struct ContentChannel {

}

struct SchemaOrg {
1: optional list<schemaorg.SchemaRecipe> recipe
}

struct Content {

/*
Expand Down Expand Up @@ -1791,6 +1796,10 @@ struct Content {
*/
28: optional list<ContentChannel> channels

/*
* Schema.org compatible data
*/
29: optional SchemaOrg schemaOrg
}

struct NetworkFront {
Expand Down

0 comments on commit 199bf6d

Please sign in to comment.