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 Dec 16, 2020
1 parent becfa24 commit 711981a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marshmallow_jsonschema/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ 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 711981a

Please sign in to comment.