Skip to content

Commit

Permalink
props_ordered does not work for nested fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sdefauw committed Jun 10, 2022
1 parent becfa24 commit 2fc4155
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion marshmallow_jsonschema/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ def _from_nested_schema(self, obj, field):
# If this is not a schema we've seen, and it's not this schema (checking this for recursive schemas),
# put it in our list of schema defs
if name not in self._nested_schema_classes and name != outer_name:
wrapped_nested = self.__class__(nested=True)
wrapped_nested = self.__class__(
nested=True, props_ordered=self.props_ordered
)
wrapped_dumped = wrapped_nested.dump(nested_instance)

wrapped_dumped["additionalProperties"] = _resolve_additional_properties(
Expand Down

0 comments on commit 2fc4155

Please sign in to comment.