code: def validate(obj, schema):
          
          if isinstance(obj, str):
              obj = json.loads(obj)
          return JsonValidator(schema)._validate(obj)
docs: Validate an object against a schema
  
          Args:
              obj (dict):
              schema (dict):