serverless-reqvalidator-plugin icon indicating copy to clipboard operation
serverless-reqvalidator-plugin copied to clipboard

Warning: Invalid configuration encountered

Open chippyash opened this issue 2 years ago • 2 comments

Warning: Invalid configuration encountered [15/1523] at 'functions.plan.events.0.http.reqValidatorName': must be string
at 'functions.customer.events.0.http.reqValidatorName': must be string
at 'functions.customer.events.2.http.reqValidatorName': must be string
at 'functions.user.events.0.http.reqValidatorName': must be string

My serverless def looks like:

reqValidatorName:
      Fn::ImportValue: 'apiGwRequestValidateBody'

I think I see this has occurred before in issue #16 . It's happening again. I'm using serverless V3.0.0 The app does build so it's not breaking yet.

Thanks for the plugin however :-)

chippyash avatar Feb 26 '22 09:02 chippyash

@chippyash can you specify the detailed version of both framework and plugin :) ?

RafPe avatar Mar 09 '22 20:03 RafPe

npx serverless --version
Framework Core: 3.3.0 (local)
Plugin: 6.1.0
SDK: 4.3.1
cat node_modules/serverless-reqvalidator-plugin/package.json
{
  "name": "serverless-reqvalidator-plugin",
  "version": "2.0.0",
  "description": "Serverless plugin for setting request validation",
  "main": "src/index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/RafPe/serverless-reqvalidator-plugin.git"
  },
  "keywords": [
    "serverless",
    "plugin",
    "requestvalidator"
  ],
  "author": "RafPe < [email protected] >",
  "contributors": [
    "pj035 [email protected] (http://pjaecks.de)"
  ],
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/RafPe/serverless-reqvalidator-plugin/issues"
  },
  "homepage": "https://github.com/RafPe/serverless-reqvalidator-plugin#readme"
}

chippyash avatar Mar 10 '22 03:03 chippyash