We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cebe6d5 commit c304af8Copy full SHA for c304af8
json_schema_for_humans/templating_utils.py
@@ -54,7 +54,7 @@ def _enum_type(enum_values: List["SchemaNode"]) -> str:
54
for python_type_name in set(type(v.literal) for v in enum_values)
55
]
56
if enum_type_names:
57
- return f"{const.TYPE_ENUM} (of {' or '.join(enum_type_names)})"
+ return f"{const.TYPE_ENUM} (of {' or '.join(sorted(enum_type_names))})"
58
59
return const.TYPE_ENUM
60
0 commit comments