Skip to content

Commit c304af8

Browse files
authored
fix: Fix for unstable enum description templating_utils.py (#243)
1 parent cebe6d5 commit c304af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json_schema_for_humans/templating_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _enum_type(enum_values: List["SchemaNode"]) -> str:
5454
for python_type_name in set(type(v.literal) for v in enum_values)
5555
]
5656
if enum_type_names:
57-
return f"{const.TYPE_ENUM} (of {' or '.join(enum_type_names)})"
57+
return f"{const.TYPE_ENUM} (of {' or '.join(sorted(enum_type_names))})"
5858

5959
return const.TYPE_ENUM
6060

0 commit comments

Comments
 (0)