Public bug reported:

Validation schema definition:
'params': {
    ...
    'validate': {
        'type:dict': {
            'name': {'type:string': None}
        }
    }
}

Passed data:
{'params': {'bad_param': 'val'}}

Expected result:
Validation fails, because bad_param is not defined in schema.

Actual result:
Validation passes

** Affects: neutron
     Importance: Undecided
     Assignee: Pavel Gluschak (scsnow)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Pavel Gluschak (scsnow)

** Changed in: neutron
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1573605

Title:
  Fixed type:dict validator passes unexpected keys

Status in neutron:
  In Progress

Bug description:
  Validation schema definition:
  'params': {
      ...
      'validate': {
          'type:dict': {
              'name': {'type:string': None}
          }
      }
  }

  Passed data:
  {'params': {'bad_param': 'val'}}

  Expected result:
  Validation fails, because bad_param is not defined in schema.

  Actual result:
  Validation passes

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1573605/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to