(definition)
| 4 | * Array Model |
| 5 | **/ |
| 6 | var ArrayModel = function(definition) { |
| 7 | this.name = "name"; |
| 8 | this.definition = definition || {}; |
| 9 | this.properties = []; |
| 10 | this.type; |
| 11 | this.ref; |
| 12 | |
| 13 | var requiredFields = definition.enum || []; |
| 14 | var items = definition.items; |
| 15 | if(items) { |
| 16 | var type = items.type; |
| 17 | if(items.type) { |
| 18 | this.type = typeFromJsonSchema(type.type, type.format); |
| 19 | } |
| 20 | else { |
| 21 | this.ref = items['$ref']; |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | ArrayModel.prototype.createJSONSample = function(modelsToIgnore) { |
| 27 | var result; |
nothing calls this directly
no outgoing calls
no test coverage detected