Skip to content

Commit 7950e8a

Browse files
committed
fix for #239, added underscore as valid model name construct
1 parent 88dbf36 commit 7950e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-core/src/main/scala/com/wordnik/swagger/converter/ModelPropertyParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class ModelPropertyParser(cls: Class[_]) (implicit properties: LinkedHashMap[Str
129129
if (!"void".equals(paramType) && null != paramType && !processedFields.contains(name)) {
130130
if(!excludedFieldTypes.contains(paramType)) {
131131
val items = {
132-
val ComplexTypeMatcher = "([a-zA-Z]*)\\[([a-zA-Z\\.\\-0-9]*)\\].*".r
132+
val ComplexTypeMatcher = "([a-zA-Z]*)\\[([a-zA-Z\\.\\-0-9_]*)\\].*".r
133133
paramType match {
134134
case ComplexTypeMatcher(containerType, basePart) => {
135135
LOGGER.debug("containerType: " + containerType + ", basePart: " + basePart + ", simpleName: " + simpleName)

0 commit comments

Comments
 (0)