Skip to content

Commit

Permalink
fix cli --stub (#800)
Browse files Browse the repository at this point in the history
Fixes #796
  • Loading branch information
dtkav authored and jmcs committed Nov 28, 2018
1 parent 2bc7bc0 commit f6dfeef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion connexion/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ def randomize_endpoint(self):
return RESOLVER_ERROR_ENDPOINT_RANDOM_DIGITS

def get_path_parameter_types(self):
return []
return {}
7 changes: 6 additions & 1 deletion tests/fixtures/module_does_not_exist/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ info:
title: Not Exist API
version: '1.0'
paths:
/module-not-implemented:
/module-not-implemented/{some_path}:
get:
summary: Operation function does not exist.
operationId: m.module_does_not_exist
parameters:
- in: path
name: some_path
schema:
type: string
responses:
'200':
description: OK
Expand Down
7 changes: 6 additions & 1 deletion tests/fixtures/module_does_not_exist/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ info:
basePath: '/na'

paths:
/module-not-implemented:
/module-not-implemented/{some_path}:
get:
summary: Operation function does not exist.
operationId: m.module_does_not_exist
parameters:
- name: some_path
in: path
required: true
type: string
responses:
200:
description: OK

0 comments on commit f6dfeef

Please sign in to comment.