-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UUID json format #313
base: master
Are you sure you want to change the base?
Add UUID json format #313
Conversation
@atararaksin Please consider to pick a more efficient and stable implementation, like here or here |
@plokhotnyuk Thanks for pointing that out. I guess including |
@atararaksin 1st one (from While 2nd one (from |
This addition should make sure that uuid's follow RFC 4122, have a look at akka/akka-http#2569 and akka/akka-http#2596 for inspiration. |
@Philippus IMHO validation of the hexadecimal representation with dashes is enough... and limiting of allowed Msb bits will broke backward compatibility with NCS and custom extensions. Also, using of regexp for that can be revised for more efficient implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProblemFilters.exclude[ReversedMissingMethodProblem]("spray.json.BasicFormats.UUIDJsonFormat")
needs to be added to the mimaBinaryIssueFilters
-setting in build.sbt
.
This PR adds an instance of
JsonFormat[UUID]
as requested in #243.I'm not sure as to where to place this object, currently
BasicFormats
is my best guess, but feel free to request any changes.Closes #243