We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from typing import Optional import sqlalchemy as sa from sqlmodel import Field, SQLModel class Hero(SQLModel, table=True): id: Optional[int] = Field(default=None, primary_key=True) name: str secret_name: str age: int = Field(gt=100, sa_column=sa.Column(sa.BigInteger())) print(Hero()) # >>> id=None
It didn‘t raise a ValidationError Exception When create a hero object without any params.
macOS
No response
0.0.6
3.9.5
The text was updated successfully, but these errors were encountered:
Duplicate of #134
Sorry, something went wrong.
No branches or pull requests
First Check
Commit to Help
Example Code
Description
It didn‘t raise a ValidationError Exception When create a hero object without any params.
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.6
Python Version
3.9.5
Additional Context
No response
The text was updated successfully, but these errors were encountered: