Correct description of collections of object and nested
This commit is contained in:
parent
88c330a503
commit
a9c1152c74
|
@ -395,7 +395,7 @@
|
|||
this.refDataType = obj.items.$ref;
|
||||
}
|
||||
}
|
||||
this.dataTypeWithRef = this.refDataType != null ? this.dataType + '[' + this.refDataType + ']' : this.dataType;
|
||||
this.dataTypeWithRef = this.refDataType != null ? (this.dataType[0].toUpperCase() + this.dataType.substring(1, this.dataType.length) + ' of ' + this.refDataType) : this.dataType;
|
||||
if (obj.allowableValues != null) {
|
||||
this.valueType = obj.allowableValues.valueType;
|
||||
this.values = obj.allowableValues.values;
|
||||
|
@ -537,7 +537,11 @@
|
|||
listType = this.isListType(dataType);
|
||||
isPrimitive = ((listType != null) && models[listType]) || (models[dataType] != null) ? false : true;
|
||||
if (isPrimitive) {
|
||||
return dataType;
|
||||
if (listType != null) {
|
||||
return '<span class="strong">Array of </span>' + listType;
|
||||
} else {
|
||||
return dataType;
|
||||
}
|
||||
} else {
|
||||
if (listType != null) {
|
||||
return '<span class="strong">Array of </span>' + models[listType].getMockSignature();
|
||||
|
|
Loading…
Reference in New Issue