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:
parent
cee095e948
commit
bbffeb11ac
3 changed files with 62 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue