Skip to content

Commit

Permalink
Define CustomField
Browse files Browse the repository at this point in the history
  • Loading branch information
Fweddi committed Dec 16, 2024
1 parent 3ae09bf commit 9082e3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions thrift/src/main/thrift/atoms/interactive.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ namespace java com.gu.contentatom.thrift.atom.interactive
#@namespace scala com.gu.contentatom.thrift.atom.interactive
#@namespace typescript _at_guardian.content_atom_model.interactive

struct CustomField {
1: required string fieldName
2: required string fieldType
3: required string defaultValue
}

struct InteractiveAtom {
/* the unique ID will be stored in the `atom` data*/
1: required string type
Expand All @@ -18,4 +24,5 @@ struct InteractiveAtom {
See here: https://amp.dev/documentation/components/amp-iframe/ for more information.
*/
7: optional string placeholderUrl
8: optional list<CustomField> customFields = []
}

0 comments on commit 9082e3a

Please sign in to comment.