You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was toying around with writing a wsgi middleware that used smore while fleshing out some ideas and noticed that smore.apispec.APISpec.add_path does a full replace via dict.update when adding a new path that matches an existing path. It ends up being a last one wins situation.
What do you think about storing the Path object in _paths and doing a recursive merge of all of its properties when calling add_path and then converting to dict when smore.apispec.APISpec.to_dict is called?
The text was updated successfully, but these errors were encountered:
What do you think about storing the Path object in _paths and doing a recursive merge of all of its properties when calling add_path and then converting to dict when smore.apispec.APISpec.to_dict is called?
I was toying around with writing a wsgi middleware that used smore while fleshing out some ideas and noticed that
smore.apispec.APISpec.add_path
does a full replace viadict.update
when adding a new path that matches an existing path. It ends up being a last one wins situation.What do you think about storing the Path object in
_paths
and doing a recursive merge of all of its properties when callingadd_path
and then converting to dict whensmore.apispec.APISpec.to_dict
is called?The text was updated successfully, but these errors were encountered: