File tree 2 files changed +21
-3
lines changed
2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -26817,11 +26817,11 @@ SwaggerUi.partials.signature = (function () {
26817
26817
26818
26818
attributes = attrs.map(function (attr) {
26819
26819
return ' ' + attr.name + '="' + attr.value + '"';
26820
- });
26820
+ }).join('') ;
26821
26821
26822
26822
str = [
26823
26823
'<', name,
26824
- attributes.join('') ,
26824
+ attributes,
26825
26825
'>',
26826
26826
value,
26827
26827
'</', name, '>'
@@ -26868,6 +26868,22 @@ SwaggerUi.partials.signature = (function () {
26868
26868
};
26869
26869
};
26870
26870
26871
+ var createArray = function (name, items, xml) {
26872
+ var value;
26873
+
26874
+ if (!items) { return ''; }
26875
+
26876
+ value = createXMLSample(name, items) + createXMLSample(name, items);
26877
+
26878
+ xml = xml || {};
26879
+
26880
+ if (xml.wrapped) {
26881
+ value = wrapTag(name, value);
26882
+ }
26883
+
26884
+ return value;
26885
+ };
26886
+
26871
26887
var createXMLSample = function (name, definition) {
26872
26888
var primitivesMap = {
26873
26889
'string': {
@@ -26904,6 +26920,8 @@ SwaggerUi.partials.signature = (function () {
26904
26920
value = primitivesMap[type][format] || primitivesMap[type].default;
26905
26921
26906
26922
return wrapTag(name, value, attributes);
26923
+ } else if (type === 'array') {
26924
+ return createArray(name, definition.items, xml);
26907
26925
}
26908
26926
26909
26927
return '';
You can’t perform that action at this time.
0 commit comments