New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to disable implicit field creation #923
Comments
Can you provide an example? |
I shouldn't say duplicate. I should just say a Schema which is silently using the wrong name. Originally my model is: class Widget(Model):
...
other_id = ... and then I have: class WidgetSchema(ModelSchema):
class Meta:
model = Widget
fields = ('other_id') and then |
IIUC, this is a marshmallow-sqlalchemy issue. But since it could affect any other marshmallow-whatever-database lib, and since the fix could be in marshmallow anyway, it makes sense to discuss it here. |
Let's move forward with #1356 . |
Add an option to disable implicit field creation. I have been burned on this when using ModelSchema where a field changes name such that there is now a field with the old name an an auto generated field with the new name leading two duplicate fields.
The text was updated successfully, but these errors were encountered: