Skip to content

Commit

Permalink
Fixed issue with generating documentation for boolean property in mod…
Browse files Browse the repository at this point in the history
…el object
  • Loading branch information
rpidikiti committed Oct 10, 2011
1 parent 9d0fcf7 commit 446bf3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/com/wordnik/swagger/core/SpecReader.scala
Expand Up @@ -363,6 +363,10 @@ private class ApiModelParser(val hostClass: Class[_]) extends BaseApiParser {
(methodFieldName.startsWith("get")) &&
methodFieldName.length > 3) {
methodFieldName.substring(3, 4).toLowerCase() + methodFieldName.substring(4, methodFieldName.length())
}else if (methodFieldName != null &&
(methodFieldName.startsWith("is")) &&
methodFieldName.length > 2) {
methodFieldName.substring(2, 3).toLowerCase() + methodFieldName.substring(3, methodFieldName.length())
} else {
null
}
Expand Down

0 comments on commit 446bf3f

Please sign in to comment.