Skip to content

Commit

Permalink
Fix DictStr documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Jul 10, 2024
1 parent e097439 commit 235fc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bemserver_api/extensions/smorest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _field2parameter(self, field, *, name, location):
# Document DictStr as "content" parameter
# https://github.com/marshmallow-code/apispec/issues/922
if isinstance(field, DictStr):
ret["content"] = {"application/json": ret.pop("schema")}
ret["content"] = {"application/json": {"schema": ret.pop("schema")}}

for param_attr_func in self.parameter_attribute_functions:
ret.update(param_attr_func(field, ret=ret))
Expand Down

0 comments on commit 235fc20

Please sign in to comment.