1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

update test

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-30 21:45:55 +09:00
parent cee095e948
commit bbffeb11ac
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 62 additions and 14 deletions

View file

@ -109,6 +109,15 @@ class RemoveDiscriminator(SchemasHookBase):
return value
class SchemasCheck(SchemasHookBase):
def hook(self, value: dict):
if value.get("allOf") is not None:
print(f"allOf is used")
if value.get("type") is None:
print("Type is None")
return value
# RequestHookBase extends