code: def validators_for_request(self, request, **kwargs):
          
          for resource_validator in self.resource_validators:
              for matcher, validator_map in resource_validator.items():
                  if matcher.matches(request):
                      return validator_map
  
          raise PathNotMatchedError(
              'Could not find the relevant path ({0}) in the Swagger schema. '
              'Perhaps you forgot to add it?'.format(request.path_info)
          )
docs: Takes a request and returns a validator mapping for the request.
  
          :param request: A Pyramid request to fetch schemas for
          :type request: :class:`pyramid.request.Request`
          :returns: a :class:`pyramid_swagger.load_schema.ValidatorMap` which can
              be used to validate `request`