Dorthu / openapi3

A Python3 OpenAPI 3 Spec Parser
BSD 3-Clause "New" or "Revised" License
118 stars 47 forks source link

Allow multiple parameters in a path #40

Closed chrised closed 3 years ago

chrised commented 3 years ago

Attempting to format a path with multiple parameters (e.g. /{parent_name}/{identifier}) causes an error response from format, since it will only succeed when it can apply to all format arguments in the string.

format path variables atomically

6b0d17b - 7331206+chrised@users.noreply.github.com

Python's String format method (format) does not allow for partial operation. Strings must be formatted with all required variables present.