mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 09:46:14 -06:00
Revert change to StatusContentType swagger annotation
I'm going to include this in a follow-on PR instead.
This commit is contained in:
parent
1af504408b
commit
112e1d6c48
2 changed files with 3 additions and 24 deletions
|
|
@ -2993,19 +2993,6 @@ definitions:
|
||||||
example: <p>Hey this is a status!</p>
|
example: <p>Hey this is a status!</p>
|
||||||
type: string
|
type: string
|
||||||
x-go-name: Content
|
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:
|
created_at:
|
||||||
description: The date when this revision was created (ISO 8601 Datetime).
|
description: The date when this revision was created (ISO 8601 Datetime).
|
||||||
example: "2021-07-30T09:20:25+00:00"
|
example: "2021-07-30T09:20:25+00:00"
|
||||||
|
|
@ -3200,17 +3187,8 @@ definitions:
|
||||||
status as submitted to the API when it was created.
|
status as submitted to the API when it was created.
|
||||||
properties:
|
properties:
|
||||||
content_type:
|
content_type:
|
||||||
description: |-
|
description: Content type that was used to parse the text.
|
||||||
Content type that was used to parse the text.
|
|
||||||
text/plain StatusContentTypePlain
|
|
||||||
text/markdown StatusContentTypeMarkdown
|
|
||||||
enum:
|
|
||||||
- text/plain
|
|
||||||
- text/markdown
|
|
||||||
type: string
|
type: string
|
||||||
x-go-enum-desc: |-
|
|
||||||
text/plain StatusContentTypePlain
|
|
||||||
text/markdown StatusContentTypeMarkdown
|
|
||||||
x-go-name: ContentType
|
x-go-name: ContentType
|
||||||
id:
|
id:
|
||||||
description: ID of the status.
|
description: ID of the status.
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,8 @@ const (
|
||||||
// StatusContentType is the content type with which to parse the submitted status.
|
// 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.
|
// 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
|
type StatusContentType string
|
||||||
|
|
||||||
// Content type to use when parsing submitted
|
// Content type to use when parsing submitted
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue