python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
parse json file to Pydantic model
I created a model of Pydantic.
But it does not convert and outputs an error
Please tell me,what is wrong.
classDTO:
from pydantic import BaseModel,Field
from typing import List,Dict
from datetime impo...
Никита
Votes: 0
Answers: 1
Pydantic reusable Validation for Dictionary's keys and values
How to validate input to get the following Dict passed!
d = dict()
d['en'] = 'English content'
d['it'] = 'Italian content'
d['es'] = 'Spanish content'
print(d)
# {'en': 'English content', 'it': 'Itali...
didatij948
Votes: 0
Answers: 1
How do I get Pylance's type checking to work with this Pydantic example?
I'm discovering Pydantic and I see this in an example (https://pydantic-docs.helpmanual.io/usage/models/#recursive-models):
from pydantic import BaseModel
class Foo(BaseModel):
count: int
siz...
lapraswastaken
Votes: 0
Answers: 1
unhashable type: 'list' FastAPI PUT request
I am attempting to update an entry in my DB which should update the parent table projects as well as the child table rounds but I am getting this error 500:
sqlalchemy.exc.StatementError: (builtins.Ty...
gunnertwin
Votes: 0
Answers: 0