Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed type casing for primitives

  • Loading branch information...
commit c68de68d186333eebb396e8d5ad2387b0feee684 1 parent a9d5689
@fehguy fehguy authored
View
6 modules/swagger-core/src/main/scala/com/wordnik/swagger/jsonschema/SwaggerJsonSchemaProvider.scala
@@ -161,9 +161,13 @@ class ApiModelParser(val hostClass: Class[_]) extends BaseApiParser {
def validateDatatype(datatype: String): String = {
datatype match {
+ case "Byte" => "byte"
+ case "Boolean" => "boolean"
case "Integer" => "int"
- case "String" => "string"
+ case "Long" => "long"
+ case "Float" => "float"
case "Double" => "double"
+ case "String" => "string"
case _ => datatype
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.