code: def validate_feature_api(project, force=False):
      
      if not force and not project.on_pr():
          raise SkippedValidationTest('Not on PR')
  
      validator = FeatureApiValidator(project)
      result = validator.validate()
      if not result:
          raise InvalidFeatureApi
docs: Validate feature API