I have a dictionary with config info: I want to check if the dictionary follows the structure I need. I’m looking for something like this: Is there any solution done to this problem or any library that could make implementing check_structure more easy? Answer Without using libraries, you could also define a simple recursive function like this: This assumes that