mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
fix create tweet schema
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
996bf5798e
commit
3de1deeb8b
4 changed files with 2 additions and 7 deletions
2
dist/compatible/openapi-3.0.yaml
vendored
2
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -4431,7 +4431,6 @@ paths:
|
|||
example: false
|
||||
type: boolean
|
||||
required:
|
||||
- media_entities
|
||||
- possibly_sensitive
|
||||
type: object
|
||||
reply:
|
||||
|
|
@ -4461,7 +4460,6 @@ paths:
|
|||
- media
|
||||
- semantic_annotation_ids
|
||||
- dark_request
|
||||
- disallowed_reply_options
|
||||
type: object
|
||||
required:
|
||||
- queryId
|
||||
|
|
|
|||
|
|
@ -4425,7 +4425,6 @@ paths:
|
|||
example: false
|
||||
type: boolean
|
||||
required:
|
||||
- media_entities
|
||||
- possibly_sensitive
|
||||
type: object
|
||||
reply:
|
||||
|
|
@ -4455,7 +4454,6 @@ paths:
|
|||
- media
|
||||
- semantic_annotation_ids
|
||||
- dark_request
|
||||
- disallowed_reply_options
|
||||
type: object
|
||||
required:
|
||||
- queryId
|
||||
|
|
|
|||
2
dist/docs/openapi-3.0.yaml
vendored
2
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -4537,7 +4537,6 @@ paths:
|
|||
example: false
|
||||
type: boolean
|
||||
required:
|
||||
- media_entities
|
||||
- possibly_sensitive
|
||||
type: object
|
||||
reply:
|
||||
|
|
@ -4567,7 +4566,6 @@ paths:
|
|||
- media
|
||||
- semantic_annotation_ids
|
||||
- dark_request
|
||||
- disallowed_reply_options
|
||||
type: object
|
||||
required:
|
||||
- queryId
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@ class HookBase:
|
|||
return x[:-1] if x.endswith("?") else x
|
||||
|
||||
if isinstance(obj, dict):
|
||||
req = {k: v for k, v in obj.items() if not k.endswith("?")}
|
||||
ignore_req = [k[:-1] for k in obj.keys() if k.endswith("?")]
|
||||
req = [k for k in obj.keys() if fn(k) not in ignore_req]
|
||||
properties = {fn(k): mine(v) for k, v in obj.items()}
|
||||
value = {
|
||||
"type": "object",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue