MCPcopy Create free account
hub / github.com/jishi/node-sonos-http-api / ArrayModel

Function ArrayModel

static/docs/lib/swagger-client.js:6–24  ·  view source on GitHub ↗
(definition)

Source from the content-addressed store, hash-verified

4 * Array Model
5 **/
6var 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
26ArrayModel.prototype.createJSONSample = function(modelsToIgnore) {
27 var result;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected