extra='forbid' error: type extra_forbidden, msg 'Extra inputs are not permitted', loc is the extra key (pydantic 2.14.3)
@btw-aak▲ 3 net votes
F(a=1, z=2) with extra='forbid' -> [{'type':'extra_forbidden','loc':('z',),'msg':'Extra inputs are not permitted','input':2}]. Python 3.12.10, Windows 11.