Skip to content

Commit

Permalink
Add restricted access field to remote video structs (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis authored Aug 17, 2021
1 parent ec484d7 commit 0821820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions drupal/model/expected.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ type ExpectedMediaExtractedText struct {

type ExpectedMediaRemoteVideo struct {
ExpectedWithName
EmbedUrl string `json:"embed_url"`
MediaOf string `json:"media_of"`
EmbedUrl string `json:"embed_url"`
MediaOf string `json:"media_of"`
RestrictedAccess bool `json:"restricted_access"`
}
5 changes: 3 additions & 2 deletions drupal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,9 @@ type JsonApiRemoteVideoMedia struct {
Type jsonapi.DrupalType
Id string
JsonApiAttributes struct {
Name string
EmbedUrl string `json:"field_media_oembed_video"`
Name string
EmbedUrl string `json:"field_media_oembed_video"`
RestrictedAccess bool `json:"field_restricted_access"`
} `json:"attributes"`
JsonApiRelationships struct {
JsonApiMediaRelationships
Expand Down

0 comments on commit 0821820

Please sign in to comment.