spec-first/connexion

Throw an error on no operation_id

Open

#1,166 opened on 2020年2月21日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Python (738 forks)batch import
good first issue

Repository metrics

Stars
 (4,346 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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())

コントリビューターガイド