Request headers and cookies parameter parsing fix

This commit is contained in:
HoverHell 2018-06-12 19:44:30 +03:00
parent 8f22b6a30a
commit 742268fe09

View file

@ -6,7 +6,7 @@ from openapi_core.validation.models import BaseValidationResult
class RequestParameters(dict):
valid_locations = ['path', 'query', 'headers', 'cookies']
valid_locations = ['path', 'query', 'header', 'cookie']
def __getitem__(self, location):
self.validate_location(location)