code: def validate(self):
          
          errors = []
          for param in self.required_params:
              if (not hasattr(self, param) or getattr(self, param) is None):
                  errors.append("missing %s parameter" % (param))
          if (len(errors) > 0):
              raise IIIFInfoError("Bad data for info.json: " + ", ".join(errors))
          return True
docs: Validate this object as Image API data.
  
          Raise IIIFInfoError with helpful message if not valid.