@property
    def format(self):
        validators = {'github': self.validate_github,
                      'jira': self.validate_jira,
                      'uri': self.validate_uri}

        for format in self.allowed_formats:
            if validators[format]():
                return format
Checks the identifier against the allowed formats and returns the first that matches or None if none do.
dataset/ETHPy150Open zalando/turnstile/turnstile/models/specifications.py/Specification.format