I'm trying to validate my JSON API using node.js + json-schema.js from commonjs-utils. Just single validation was easy but could not find right way how to manage multiple schema files to enable referencing each other.

Is there any way to create object with separated schema files in node.js?
–
uzay95Apr 30 at 7:19

@uzay95 schemas are not classes. A schema is used for defining and validating the structure of an object, a class defines the structure of an object after it's initialisation. If you need classes in js, try looking at Typescript, AtScript or ES6. Or simply put a module or constructor factory method within an external file you will include in node.js.
–
Flavien VolkenMay 1 at 20:03