Skip to content
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

✨ Do not allow invalid combinations of field parameters for columns and relationships, sa_column excludes sa_column_args, primary_key, nullable, etc. #681

Merged
merged 6 commits into from
Oct 28, 2023

Conversation

tiangolo
Copy link
Owner

✨ Do not allow invalid combinations of field parameters for columns and relationships, sa_column excludes sa_column_args, primary_key, nullable, etc.

Add types and runtime checks to error when sa_column is used with invalid additional arguments: sa_column_args, sa_column_kwargs, primary_key, nullable, foreign_key, unique, index.

Also add types and runtime checks to error when sa_relationship is used with invalid additional arguments: sa_relationship_args, sa_relationship_kwargs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant