1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-09-15 12:19:21 +09:00
parent 49bfd77799
commit 0536aba4f4
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 26 additions and 13 deletions

View file

@ -40,8 +40,7 @@ components:
itemContent:
$ref: "#/components/schemas/ItemContentUnion"
clientEventInfo:
type: object
additionalProperties: true # todo
$ref: "#/components/schemas/ClientEventInfo"
feedbackInfo:
type: object
additionalProperties: true # todo
@ -113,8 +112,7 @@ components:
- "itemContent"
properties:
clientEventInfo:
type: object
additionalProperties: true # todo
$ref: "#/components/schemas/ClientEventInfo"
itemContent:
$ref: "#/components/schemas/ItemContentUnion"
@ -229,4 +227,6 @@ components:
type: string # enum half_cover
element:
type: string
pattern: "^(january|february|march|april|may|june|july|august|september|october|november|december)-[0-9]{4}-([a-z]-)+[a-z]+$" # august-2023-privacy-prompt-candidate
# august-2023-privacy-prompt-candidate
pattern: "(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+"
# pattern: "^(january|february|march|april|may|june|july|august|september|october|november|december)-[0-9]{4}-([a-z]-)+[a-z]+$"

View file

@ -267,7 +267,7 @@ components:
items:
$ref: "#/components/schemas/Callback"
clientEventInfo:
$ref: "#/components/schemas/ClientEventInfo"
$ref: "#/components/schemas/CtaClientEventInfo"
buttonStyle:
type: string
enum: ["Primary"]
@ -286,9 +286,10 @@ components:
properties:
endpoint:
type: string
format: uri
# pattern: '^/1\.1/[a-z]+/[a-z]+\.json\?[a-z_]+=[a-z0-9-]+(&[a-z_]+=[a-z0-9-]+)+?$' #/1.1/onboarding/fatigue.json?{params}
ClientEventInfo:
CtaClientEventInfo:
required:
- action
properties: