hamlet-io / executor-bash

Executor for hamlet based on bash
GNU General Public License v3.0
0 stars 4 forks source link

refactor: sort json objects for comparisons #182

Closed ml019 closed 3 years ago

ml019 commented 3 years ago

Description

Sort object attributes prior to json file comparisons.

Motivation and Context

With the changes to output generation, all previously generated json files will show differences because of the indeterminant nature of object attributes.

To avoid this, sort keys as part of the comparison of json files. Semantically the files are the same even if syntactically they are different.

How Has This Been Tested?

Local template generations

Types of changes

Followup Actions

Checklist: