code: def drop_id_validate(data, schema):
      
      jsonschema.validate(data, schema)
      if data.get('_id') is not None:
          del data['_id']
docs: Custom validation function which drops parameter '_id' if present
      in data