Ordering Enum entries #296
Unanswered
criptomikon
asked this question in
Q&A
Replies: 1 comment
-
hello, @criptomikon |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need some help to understand how can I apply the ordering of the Enum to the Json Schema.
From this object:
sealed trait EnumToOrder extends EnumEntry with Ordered[EnumToOrder]
where the compare method is implemented, I create the case objects like this:This is used in another object like this:
For some reason I don't understand, when generating the Json Schema, the order is ignored:
Is there a way to enforce the order of the possible enum entries in the generated Json Schema?
Beta Was this translation helpful? Give feedback.
All reactions