This commit is contained in:
@@ -45,6 +45,8 @@ func (r Reference) Validate() error {
|
||||
|
||||
// Associations are an immutable revision's term memberships and explicit links.
|
||||
// Reverse discovery reads the same links; callers must not store a second edge.
|
||||
// Terms and Links are independently optional. The zero value is valid for a
|
||||
// valid source; unclassified content never needs a placeholder taxonomy or link.
|
||||
type Associations struct {
|
||||
Terms []string `json:"terms,omitempty"`
|
||||
Links []Reference `json:"links,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user