spec-first/connexion

Throw an error on no operation_id

Open

#1.166 geöffnet am 21. Feb. 2020

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (4.346 Stars) (738 Forks)batch import
good first issue

Beschreibung

https://github.com/zalando/connexion/blob/96bdcb010a4e5180c2bce18295e7b576c9c1ef0f/connexion/resolver.py#L60

Currently operation_id == None flows into function_resolver and triggers unexpected errors. Better to do?:

if operation_id is None:
  raise ResolverError("operation_id is None", sys.exc_info())

Contributor Guide