diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index eb4309e90..bd2704fab 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -2993,19 +2993,6 @@ definitions: example:

Hey this is a status!

type: string x-go-name: Content - content_type: - description: |- - Content type that was used to parse this revision's text. - text/plain StatusContentTypePlain - text/markdown StatusContentTypeMarkdown - enum: - - text/plain - - text/markdown - type: string - x-go-enum-desc: |- - text/plain StatusContentTypePlain - text/markdown StatusContentTypeMarkdown - x-go-name: ContentType created_at: description: The date when this revision was created (ISO 8601 Datetime). example: "2021-07-30T09:20:25+00:00" @@ -3200,17 +3187,8 @@ definitions: status as submitted to the API when it was created. properties: content_type: - description: |- - Content type that was used to parse the text. - text/plain StatusContentTypePlain - text/markdown StatusContentTypeMarkdown - enum: - - text/plain - - text/markdown + description: Content type that was used to parse the text. type: string - x-go-enum-desc: |- - text/plain StatusContentTypePlain - text/markdown StatusContentTypeMarkdown x-go-name: ContentType id: description: ID of the status. diff --git a/internal/api/model/status.go b/internal/api/model/status.go index 6b2345275..286a90dfe 100644 --- a/internal/api/model/status.go +++ b/internal/api/model/status.go @@ -293,7 +293,8 @@ const ( // StatusContentType is the content type with which to parse the submitted status. // Can be either text/plain or text/markdown. Empty will default to text/plain. // -// swagger:enum StatusContentType +// swagger:enum statusContentType +// swagger:type string type StatusContentType string // Content type to use when parsing submitted