I'm working with FastAPI to create a really simple dummy API. For it I was playing around with enums to define the require body for a post request and simulating a DB call from the API method to a dummy method.
To have the proper body request on my endpoint, Im using Pydantic's BaseModel on the class definition but for some reason I get this error
File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__setattr__
AttributeError: 'MagicItem' object has no attribute '__fields_set__'
I'm not sure what's the problem, here is my code that generate all this:
I'm kinda lost right now cuz I don't see the error in such a simple code.


