Skip to content

Commit

Permalink
Merge pull request #19 from invopop/shared-meta
Browse files Browse the repository at this point in the history
Ensuring silo entry shared meta flag is available
  • Loading branch information
samlown authored Sep 17, 2024
2 parents 6758539 + 1cce55b commit 45cc6bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invopop/silo_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type SiloMeta struct {
Value json.RawMessage `json:"value,omitempty" title:"Value" description:"The JSON data stored with the meta row." example:"{\"key\": \"value\"}"`
LinkURL string `json:"link_url,omitempty" title:"Link URL" description:"URL associated with the meta row that may be used to perform additional actions or view more details." example:"https://example.com/info"`
LinkScope string `json:"link_scope,omitempty" title:"Link Scope" description:"Describes the context in which the link should be made available." example:"public"`
Shared bool `json:"shared,omitempty" title:"Shared" description:"When true, the meta entry can be shared with other applications." example:"true"`
}

// UpsertSiloMeta is to update or create a new meta row for an entry.
Expand All @@ -40,6 +41,7 @@ type UpsertSiloMeta struct {
LinkScope string `json:"scope,omitempty" title:"Link Scope" description:"Describes the context in which the link should be made available." example:"public"`
Indexed bool `json:"indexed,omitempty" title:"Indexed" description:"When true, the meta entry is indexed for search." example:"true"`
Secure bool `json:"secure,omitempty" title:"Secure" description:"When true, the meta entry is never included in lists and needs to be specifically requested." example:"true"`
Shared bool `json:"shared,omitempty" title:"Shared" description:"When true, the meta entry can be shared with other applications." example:"true"`
}

// Fetch retrieves a meta row by its key.
Expand Down

0 comments on commit 45cc6bd

Please sign in to comment.