Skip to content

Commit

Permalink
dtschema: Ensure generated property type output is sorted
Browse files Browse the repository at this point in the history
Mainly for purposes of before and after comparisons of the processed
schemas, ensure the generated property type output is sorted.

Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
robherring committed Aug 8, 2022
1 parent b12b373 commit 0d1b78c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtschema/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def make_property_type_cache():
'$id': 'generated-types',
'$filename': 'Generated property types',
'select': False,
'properties': props
'properties': {k: props[k] for k in sorted(props)}
}

for val in pat_props.values():
Expand All @@ -1056,7 +1056,7 @@ def make_property_type_cache():
'$id': 'generated-pattern-types',
'$filename': 'Generated property types',
'select': False,
'properties': pat_props
'properties': {k: pat_props[k] for k in sorted(pat_props)}
}


Expand Down

0 comments on commit 0d1b78c

Please sign in to comment.