1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00

update time pattern

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-17 22:45:56 +09:00
parent 43a21d67c4
commit b661d8e94a
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA

View file

@ -496,6 +496,12 @@ paths:
components:
schemas:
# ================= General =================
TwitterTime:
type: string # Thu Apr 06 13:23:34 +0000 2023
pattern: "^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]) ([+-][0-9]{4}) ([0-9]{4})$"
# ================= TypeName =================
TypeName:
type: string
@ -867,6 +873,7 @@ components:
- "bookmark_count"
- "bookmarked"
- "conversation_id_str"
- "created_at"
- "display_text_range"
- "entities"
- "favorite_count"
@ -886,7 +893,7 @@ components:
bookmarked:
type: boolean
created_at:
type: string # Thu Apr 06 13:23:34 +0000 2023
$ref: "#/components/schemas/TwitterTime"
conversation_id_str:
type: string
pattern: "^[0-9]+$"
@ -1049,7 +1056,7 @@ components:
type: boolean
default: false
created_at:
type: string # Wed Jul 08 14:05:58 +0000 2009
$ref: "#/components/schemas/TwitterTime"
default_profile:
type: boolean
default: false