Skip to content
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 Seq & Set StringKeyFormats #12

Merged
merged 1 commit into from
May 18, 2016
Merged

Conversation

saeta
Copy link
Contributor

@saeta saeta commented May 18, 2016

Seq and Set StringKeyFormats are important for query parameter parsing in
Naptime.

@@ -235,6 +236,12 @@ sealed trait CommonStringKeyFormats extends DefaultTupleFormats {
implicit val instantFormat: StringKeyFormat[Instant] =
StringKeyFormat.delegateFormat[Instant, Long](millis => Some(new Instant(millis)), _.getMillis)

implicit def seqFormat[T](implicit format: StringKeyFormat[T]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the deprecation warnings or Scaladoc that warns about not using it because of its slight incorrectness?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orite. Adding...

Seq and Set StringKeyFormats are important for query parameter parsing in
Naptime.
@saeta saeta merged commit 04e83cb into coursera:master May 18, 2016
@saeta saeta deleted the add-seq-and-set branch May 18, 2016 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants