Oliver Bassett
Oliver Bassett
I was just going through this aswell! If the model as table=True then validations are disabled, and it assume SQLalchemy will pick up any issues. It then basically drops those...
Ok so I have been looking at work-arounds for this - as I don't want to double up on models just to do validation. If the model is defined with...
see #65 - it has the how to do it. Basically you specify something like - `email: EmailStr = Field(sa_column=Column("email", VARCHAR, unique=True)) the = Field(sa_column=Column("username", VARCHAR, unique=True))`
I asked tiangolo on twitter about AsyncSession  It isn't tested or documented and he think some things (e.g. autocompletions) might not work perfectly yet... so I...
@ahothan - You could try to set the KUBECONFIG environment variable on the line with execution of the command as a workaround- depending on how it gets called. e.g. `KUBECONFIG=path/to/kubeconfig...