Skip to content

Commit

Permalink
Register input type in schema for PATCH method (#266)
Browse files Browse the repository at this point in the history
* Register input type schema for PATCH method

* bump version
  • Loading branch information
amory-coursera committed Feb 21, 2019
1 parent 118c149 commit 8034248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -471,7 +471,7 @@ class MacroImpls(val c: blackbox.Context) {
val vagueTypes = List("Unit", "play.api.mvc.AnyContent", "Any")
val inputBodyType = category match {
case CreateRestActionCategory | UpdateRestActionCategory | ActionRestActionCategory |
DeleteRestActionCategory =>
DeleteRestActionCategory | PatchRestActionCategory =>
q"""
val paramName = ${method.returnType.typeArgs(2).toString}
Some(paramName).filterNot($vagueTypes.contains)
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
@@ -1 +1 @@
version in ThisBuild := "0.9.2-alpha24"
version in ThisBuild := "0.9.2-alpha25"

0 comments on commit 8034248

Please sign in to comment.