vercel/schemas

The `limits` parameter of `now.json` doesn’t work with the error `config should NOT have additional properties`

nkzawa opened this issue · 0 comments

Error: Invalid request: config should NOT have additional properties
    at deployment.retry (/Users/NaoyukiKanezawa/github.com/zeit/now-cli/src/providers/sh/util/index.js:275:14)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Tested with the canary branch of now-cli.

btw now-cli sends duplicated limit value in the request body like the following:

{ env: {},
  public: undefined,
  forceNew: false,
  name: 'test-slot',
  description: undefined,
  deploymentType: 'docker',
  registryAuthToken: undefined,
  files:
   [ { sha: '759d62c7c6c67fe510c0447891c1936dab297c13',
       size: 75,
       file: 'package.json',
       mode: 33188 },
     { sha: '4ca932a5423661e9eeed6ca069815c9d67e7ca17',
       size: 107,
       file: 'index.js',
       mode: 33188 },
     { sha: '48a077c7d28c5226dfb0cdd5263674abedce84f8',
       size: 108,
       file: 'now.json',
       mode: 33188 },
     { sha: '980fad954a72a9233102f59cf4086e5b4054a5b8',
       size: 88,
       file: 'Dockerfile',
       mode: 33188 } ],
  engines: undefined,
  scale: {},
  sessionAffinity: 'ip',
  limits: { maxConcurrentReqs: 1 },
  atlas: false,
  config:
   { type: 'docker',
     features: { cloud: 'v2' },
     limits: { maxConcurrentReqs: 1 } } }

I wonder if it's expected.