summaryrefslogtreecommitdiff
path: root/internal/api/model/tag.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/tag.go')
-rw-r--r--internal/api/model/tag.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/api/model/tag.go b/internal/api/model/tag.go
index f009b4cef..951f07808 100644
--- a/internal/api/model/tag.go
+++ b/internal/api/model/tag.go
@@ -18,10 +18,14 @@
package model
-// Tag represents a hashtag used within the content of a status. See https://docs.joinmastodon.org/entities/tag/
+// Tag represents a hashtag used within the content of a status.
+//
+// swagger:model tag
type Tag struct {
// The value of the hashtag after the # sign.
+ // example: helloworld
Name string `json:"name"`
- // A link to the hashtag on the instance.
+ // Web link to the hashtag.
+ // example: https://example.org/tags/helloworld
URL string `json:"url"`
}