patchGeneratorTemplate(req, res, next) {
    const allowedToPatch = ['isPublished'];
    const illegal = Object.keys(req.body)
    .filter((f) => !allowedToPatch.includes(f));
    if (illegal.length) {
      const verr = new apiErrors.ValidationError(
        { explanation: `You cannot modify these attributes: ${illegal}` }
      );
      return u.handleError(next, verr, helper.modelName);
    }

    doPatch(req, res, next, helper);
  }
/**
   * PATCH /generatorTemplates/{key}
   *
   * Modifies the generatorTemplate and sends it back in the response.
   *
   * @param {IncomingMessage} req - The request object
   * @param {ServerResponse} res - The response object
   * @param {Function} next - The next middleware function in the stack
   */
PATCH /generatorTemplates/{key}
Modifies the generatorTemplate and sends it back in the response.

@param {IncomingMessage} req - The request object
@param {ServerResponse} res - The response object
@param {Function} next - The next middleware function in the stack
PATCH / generatorTemplates / { key } Modifies the generatorTemplate and sends it back in the response . @param { IncomingMessage } req - The request object @param { ServerResponse } res - The response object @param { Function } next - The next middleware function in the stack
patchGeneratorTemplate(req, res, next) {
    const allowedToPatch = ['isPublished'];
    const illegal = Object.keys(req.body)
    .filter((f) => !allowedToPatch.includes(f));
    if (illegal.length) {
      const verr = new apiErrors.ValidationError(
        { explanation: `You cannot modify these attributes: ${illegal}` }
      );
      return u.handleError(next, verr, helper.modelName);
    }
    doPatch(req, res, next, helper);
  }
patchGeneratorTemplate ( req , res , next ) { const allowedToPatch = [ 'isPublished' ] ; const illegal = Object . keys ( req . body ) . filter ( ( f ) => ! allowedToPatch . includes ( f ) ) ; if ( illegal . length ) { const verr = new apiErrors . ValidationError ( { explanation : ` ${ illegal } ` } ) ; return u . handleError ( next , verr , helper . modelName ) ; } doPatch ( req , res , next , helper ) ; }
PATCH /generatorTemplates/{key}
 Modifies the generatorTemplate and sends it back in the response.
PATCH / generatorTemplates / { key } Modifies the generatorTemplate and sends it back in the response .