code: def primary_key(self):
          
          primary_key = self.__current_descriptor.get('primaryKey', [])
          if not isinstance(primary_key, list):
              primary_key = [primary_key]
          return primary_key
docs: https://github.com/frictionlessdata/tableschema-py#schema