Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openapi_core/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from functools import lru_cache

from six import iteritems
from openapi_spec_validator.validators import PathItemValidator

from openapi_core.exceptions import InvalidResponse
from openapi_core.parameters import ParametersGenerator
Expand Down Expand Up @@ -56,7 +57,7 @@ def __init__(self, dereferencer, schemas_registry):
def generate(self, path_name, path):
path_deref = self.dereferencer.dereference(path)
for http_method, operation in iteritems(path_deref):
if http_method.startswith('x-') or http_method == 'parameters':
if http_method not in PathItemValidator.OPERATIONS:
continue

operation_deref = self.dereferencer.dereference(operation)
Expand Down