Skip to content

Commit

Permalink
Merge pull request #77 from fa0311/dev
Browse files Browse the repository at this point in the history
fix create tweet schema
  • Loading branch information
fa0311 authored Nov 1, 2024
2 parents bc50143 + 3de1dee commit 4b27150
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dist/compatible/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4431,7 +4431,6 @@ paths:
example: false
type: boolean
required:
- media_entities
- possibly_sensitive
type: object
reply:
Expand Down Expand Up @@ -4461,7 +4460,6 @@ paths:
- media
- semantic_annotation_ids
- dark_request
- disallowed_reply_options
type: object
required:
- queryId
Expand Down
2 changes: 0 additions & 2 deletions dist/compatible_discriminator/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4425,7 +4425,6 @@ paths:
example: false
type: boolean
required:
- media_entities
- possibly_sensitive
type: object
reply:
Expand Down Expand Up @@ -4455,7 +4454,6 @@ paths:
- media
- semantic_annotation_ids
- dark_request
- disallowed_reply_options
type: object
required:
- queryId
Expand Down
2 changes: 0 additions & 2 deletions dist/docs/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4537,7 +4537,6 @@ paths:
example: false
type: boolean
required:
- media_entities
- possibly_sensitive
type: object
reply:
Expand Down Expand Up @@ -4567,7 +4566,6 @@ paths:
- media
- semantic_annotation_ids
- dark_request
- disallowed_reply_options
type: object
required:
- queryId
Expand Down
3 changes: 2 additions & 1 deletion tools/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def fn(x: str):
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",
Expand Down

0 comments on commit 4b27150

Please sign in to comment.