mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
fix pydantic orm mode issue
This commit is contained in:
@@ -14,7 +14,7 @@ class NonsenseSchema(BaseModel):
|
||||
)
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
# orm_mode = True
|
||||
schema_extra = {
|
||||
"example": {
|
||||
"name": "Name for Some Nonsense",
|
||||
|
||||
@@ -14,7 +14,7 @@ class StuffSchema(BaseModel):
|
||||
)
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
# orm_mode = True
|
||||
schema_extra = {
|
||||
"example": {
|
||||
"name": "Name for Some Stuff",
|
||||
|
||||
Reference in New Issue
Block a user