OM

Results 10 comments of OM

@antonagestam exactly! If you have a look at the Fastapi sample I am mentioning below for reference ! ``` class Item(BaseModel): name: str description: Optional[str] = None price: float tax:...

> @omfd I'm curious if anyone has experimented with making this work, e.g. using some transformer from pydantic's `BaseModel.dict()` to drf-yasg's `Schema`? @antonagestam I tried to extend SwaggerAutoSchema to accomodate...

``` def get_request_body_parameters(self, consumes): """Return the request body parameters for this view. |br| This is either: - a list with a single object Parameter with a :class:`.Schema` derived from the...

> @omfd > > > But the prime issue is the base class has a strict check of object being of type serializer which makes it incompatible > > Which...

@JoelLefkowitz Hi Joel I have added couple of examples in the thread above as well mentioned the code where I am having trouble in extending the **SwaggerAutoSchema** to accomodate pydantic...

Hi @long2ice , Thanks for response. ``` TORTOISE_ORM = { "connections": {"default": os.getenv("POSTGRES_URI")}, "apps": { "models": { "models": models, "default_connection": "default", }, }, } ```

Sorry @long2ice ``` class BaseModel(Model): id = fields.UUIDField(pk=True) created_at = fields.DatetimeField(auto_now_add=True, index=True) created_by = fields.UUIDField(null=True) updated_at = fields.DatetimeField(auto_now=True, index=True) ``` ``` class Campaign(BaseModel): name = fields.CharField(max_length=255, description='Campaign Name') target =...

Sure, @long2ice Thanks !! I am looking into it as well. I will report back the exact issue. The thing is `aerich init-db` worked without issue. `aerich migrate` failed !!

@long2ice also I would suggest to get rid of mentioning the name of the migration especially in multi member environment!

> We will fix this in the next release. When are we getting the release with this particular fix ?