mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 08:00:27 +01:00
fix #22, update additionalProperties
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
0a7f111236
commit
cee095e948
8 changed files with 157 additions and 32 deletions
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BookmarksResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/BookmarksResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ components:
|
|||
properties:
|
||||
id:
|
||||
type: string
|
||||
# pattern: "^[0-9a-zA-Z]+$"
|
||||
pattern: "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$" # base64
|
||||
result:
|
||||
$ref: "#/components/schemas/UserResultByScreenNameResult"
|
||||
|
||||
|
|
@ -59,7 +59,8 @@ components:
|
|||
legacy:
|
||||
$ref: "#/components/schemas/UserResultByScreenNameLegacy"
|
||||
profilemodules:
|
||||
type: object # todo
|
||||
type: object
|
||||
additionalProperties: true # todo
|
||||
rest_id:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue