1
Fork 0
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:
ふぁ 2023-07-30 19:43:04 +09:00
parent 0a7f111236
commit cee095e948
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
8 changed files with 157 additions and 32 deletions

View file

@ -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"

View file

@ -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]+$"