Skip to content Skip to sidebar Skip to footer

How To Print Which Key Is "missing" And For Which Key I Am Getting "false" Response From Below Script?

My Script def validate_record_schema(): '''Validate that the 0 or more Payload dicts in record use proper types''' err_path = 'root' try: for record in orig

Solution 1:

I would suggest going the route of using JSON Schema for validating your JSON instead of reinventing the wheel.

https://python-jsonschema.readthedocs.io/en/latest/

Post a Comment for "How To Print Which Key Is "missing" And For Which Key I Am Getting "false" Response From Below Script?"