Skip to content

Commit

Permalink
Update openapi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
channelcat authored Jan 30, 2017
1 parent 8da8114 commit 8a7b77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic_openapi/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def build_spec(app, loop):

uri_parsed = uri
for parameter in route.parameters:
uri_parsed = re.sub('<'+parameter.name+'.+?>', '{'+parameter.name+'}', uri_parsed)
uri_parsed = re.sub('<'+parameter.name+'.*?>', '{'+parameter.name+'}', uri_parsed)

paths[uri_parsed] = methods

Expand Down

0 comments on commit 8a7b77f

Please sign in to comment.