Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue with generating documentation for boolean property in mod…

…el object
  • Loading branch information...
commit 446bf3f584a117c540f93d3c33ba053630726e11 1 parent 9d0fcf7
@rpidikiti rpidikiti authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/scala/com/wordnik/swagger/core/SpecReader.scala
View
4 src/main/scala/com/wordnik/swagger/core/SpecReader.scala
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.