from pydantic import BaseModel
class AuthenticationResponseSchema(BaseModel):
type: str
schema = AuthenticationResponseSchema(type=1)
Now I'm changing marshmallow to pydantic for schema, model ...
But pydantic schema did not validated type when data response.
data type of type is string, but the integer passed too.
what is wrong?
Thank you.