A column of the form is_public = Column(Boolean, default=False, nullable=False) produces a schema with required=True, although the intention of the default argument is explicitly to not require a user to provide a value. The culprit is the registerSchema decorator.
I propose changing that line to something like:
schema['required'] = not (col.nullable or col.default is None) \
if not col.primary_key else False
A column of the form
is_public = Column(Boolean, default=False, nullable=False)
produces a schema withrequired=True
, although the intention of thedefault
argument is explicitly to not require a user to provide a value. The culprit is theregisterSchema
decorator.I propose changing that line to something like: