(descriptor)
| 24897 | }; |
| 24898 | |
| 24899 | var createArrayXML = function (descriptor) { |
| 24900 | var name = descriptor.name; |
| 24901 | var config = descriptor.config; |
| 24902 | var definition = descriptor.definition; |
| 24903 | var models = descriptor.models; |
| 24904 | var value; |
| 24905 | var items = definition.items; |
| 24906 | var xml = definition.xml || {}; |
| 24907 | var namespace = getNamespace(xml); |
| 24908 | var attributes = []; |
| 24909 | |
| 24910 | if (!items) { return getErrorMessage(); } |
| 24911 | var key = name; |
| 24912 | // If there is a name specified for the array elements, use that for the array elements name | https://github.com/swagger-api/swagger-ui/issues/2577 |
| 24913 | if(items.xml && items.xml.name) { |
| 24914 | key = items.xml.name; |
| 24915 | } |
| 24916 | value = createSchemaXML(key, items, models, config); |
| 24917 | if (namespace) { |
| 24918 | attributes.push(namespace); |
| 24919 | } |
| 24920 | |
| 24921 | if (xml.wrapped) { |
| 24922 | value = wrapTag(name, value, attributes); |
| 24923 | } |
| 24924 | |
| 24925 | return value; |
| 24926 | }; |
| 24927 | |
| 24928 | var getPrimitiveSignature = function (schema) { |
| 24929 | var type, items; |
no test coverage detected