meta: truth value of Schema includes schema check
The truthiness of the `Schema` object itself now contains the schema validation as well, i.e. schema is only valid if schema information is present and said information passes validation.
This commit is contained in:
parent
26ca79ec25
commit
1fa3b88ab1
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ class Schema:
|
|||
return res
|
||||
|
||||
def __bool__(self):
|
||||
return self.data
|
||||
return self.check().valid
|
||||
|
||||
|
||||
class StageInfo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue