Hi ,

 I want to auto generate models in node.js based on the API spec file .Like 
model should contain setter method which we can use while passing the data 
to API .

Example of what i am looking at.How can i generate something like this as 
shown below.Any help is appreciated.

data: {
    "name": "String",
    "description": "String",
    "externalId": "String",
    "type": "String", 
    "members": "String"
}


i want model to be generated with method like 


setName(name) {
    data.name = name;
}

setDescription(description) {
  data.description = description;
}

setExternalId(externalId) {
   data.externalId = externalId;
}

setType(type) {
    data.type = type;
}



-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/faddb9e6-05f2-4942-87cc-7fdb48219214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to