Reviewed:  https://review.openstack.org/309964
Committed: 
https://git.openstack.org/cgit/openstack/neutron-lib/commit/?id=bb13c505b9999d0d8c032bacbf5d6615281bf29b
Submitter: Jenkins
Branch:    master

commit bb13c505b9999d0d8c032bacbf5d6615281bf29b
Author: Pavel Gluschak <[email protected]>
Date:   Mon Apr 25 15:59:18 2016 +0300

    Fixed type:dict validator passes unexpected keys
    
    Validation should fail if passed parameter
    does not match defined schema.
    
    Change-Id: Ia93ff849396c6e2a5a170d7c01629a38e412f037
    Closes-Bug: #1573605
    Signed-off-by: Pavel Gluschak <[email protected]>


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to