You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to set the schema.partial attribute in the Meta class for SQLAlchemyAutoSchemas?
I would like to use SQLALchemyAutoSchemas with frameworks that don't allow me to set partial=True in the load_instance call (because it is done automatically) -- that setting is inherited from the schema definition. It seems like it might not be possible to set partial=True for a SQLAlchemyAutoSchema directly.
If this is not possible, could the Meta class be improved to support this?
The text was updated successfully, but these errors were encountered:
Due to another limitation of ma-sqla (multiple variations on a schemas will trigger a naming collision warning), it is not really practical to use MySchema and MySchema(partial=True) in the same REST API (having both is a typical pattern to support CRUD endpoints).
But as mentioned above, defining a class MySchemaPartial(MySchema) that sets partial = True in Meta does not seem to work…
Is it possible to set the schema.partial attribute in the Meta class for SQLAlchemyAutoSchemas?
I would like to use SQLALchemyAutoSchemas with frameworks that don't allow me to set
partial=True
in the load_instance call (because it is done automatically) -- that setting is inherited from the schema definition. It seems like it might not be possible to setpartial=True
for a SQLAlchemyAutoSchema directly.If this is not possible, could the Meta class be improved to support this?
The text was updated successfully, but these errors were encountered: