Skip to content

Commit

Permalink
Sort keys in json representation of requests
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Apr 15, 2024
1 parent c8a609f commit 945c8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datalad_cds/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def to_dict(self) -> Dict[str, Any]:
}

def to_json(self) -> str:
return json.dumps(self.to_dict(), separators=(",", ":"))
return json.dumps(self.to_dict(), separators=(",", ":"), sort_keys=True)

def to_url(self) -> str:
json_spec = self.to_json()
Expand Down

0 comments on commit 945c8d7

Please sign in to comment.