Skip to content

Commit

Permalink
#1649 Fix type return by describe API for hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 18, 2020
1 parent 4f0ac9c commit c65a183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class DescribeCtrl @Inject() (
prop.mapping.domainTypeClass match {
case c if c == classOf[Boolean] || c == classOf[JBoolean] => Seq(PropertyDescription(prop.propertyName, "boolean"))
case c if c == classOf[Date] => Seq(PropertyDescription(prop.propertyName, "date"))
case c if c == classOf[Hash] => Seq(PropertyDescription(prop.propertyName, "hash"))
case c if c == classOf[Hash] => Seq(PropertyDescription(prop.propertyName, "string"))
case c if classOf[Number].isAssignableFrom(c) => Seq(PropertyDescription(prop.propertyName, "number"))
case c if c == classOf[String] => Seq(PropertyDescription(prop.propertyName, "string"))
case _ =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class DescribeCtrl @Inject() (
prop.mapping.domainTypeClass match {
case c if c == classOf[Boolean] || c == classOf[JBoolean] => Seq(PropertyDescription(prop.propertyName, "boolean"))
case c if c == classOf[Date] => Seq(PropertyDescription(prop.propertyName, "date"))
case c if c == classOf[Hash] => Seq(PropertyDescription(prop.propertyName, "hash"))
case c if c == classOf[Hash] => Seq(PropertyDescription(prop.propertyName, "string"))
case c if classOf[Number].isAssignableFrom(c) => Seq(PropertyDescription(prop.propertyName, "number"))
case c if c == classOf[String] => Seq(PropertyDescription(prop.propertyName, "string"))
case _ =>
Expand Down

0 comments on commit c65a183

Please sign in to comment.