summaryrefslogtreecommitdiff
path: root/internal/api/model/card.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-08-02 19:06:44 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-02 19:06:44 +0200
commit0386a28b5a3c4212320e8a96ddd14c54b65a2090 (patch)
tree3bfdf198934215ac64acac9d66d952baf65c2752 /internal/api/model/card.go
parentfix breaky linky (diff)
downloadgotosocial-0386a28b5a3c4212320e8a96ddd14c54b65a2090.tar.xz
Frodo swaggins (#126)
* more swagger fun * document a whole bunch more stuff * more swagger yayyyyyyy * progress + go fmt
Diffstat (limited to 'internal/api/model/card.go')
-rw-r--r--internal/api/model/card.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/api/model/card.go b/internal/api/model/card.go
index 46807a735..7442fa9cb 100644
--- a/internal/api/model/card.go
+++ b/internal/api/model/card.go
@@ -32,11 +32,11 @@ type Card struct {
// example: Is water wet? We're not sure. In this article, we ask an expert...
Description string `json:"description"`
// The type of the preview card.
- // String (Enumerable, oneOf)
- // link = Link OEmbed
- // photo = Photo OEmbed
- // video = Video OEmbed
- // rich = iframe OEmbed. Not currently accepted, so won't show up in practice.
+ // enum:
+ // - link
+ // - photo
+ // - video
+ // - rich
// example: link
Type string `json:"type"`
// The author of the original resource.