-
-
Notifications
You must be signed in to change notification settings - Fork 609
Closed
Labels
EnhancementSome new desired functionalitySome new desired functionality
Description
As explained in the title, when resolving a schema on Python version (< 3.6) where dict implementation does not keep key insertion ordering, the object key order can be lost. This can be especially problematic for the "properties" object that is usually found in schemas.
I would be glad to provide a PR to fix this. My approach would be to provide a json_kwargs as RefResolver.init argument and forward it to json.loads in resolve_remote, so that users that need this functionality (at least me) could pass the object_pairs_hook argument with an OrderedDict value.
Would you be ok with that ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementSome new desired functionalitySome new desired functionality