here is how you use it
works great for swagger - kinda the point of it
model class
var schemaConstruct = ; var error = ; errorprototype { // whatever you wanna do to make this happen} moduleexports = error;
something that uses that model
var Error = ;var error = ; console;/*{ code: null, message: null, stack: null}*/ console;/*{ type: 'object', properties: { code: { type: 'string' }, message: { type: 'string' }, stack: { type: 'string' } }, additionalProperties: false}*/ console;/* hopefully whatever you did to make this xml worked lol*/