function load_schema(typename) {
        var filename = SCHEMAS_DIR + '/' + typename + '.schema.json';
        return readJSONFile(filename).then(function (data) {
            return { filename: data.filename, schema: data.obj };
        });
    }
// The promise returns the loaded schema
The promise returns the loaded schema
The promise returns the loaded schema
function load_schema(typename) {
        var filename = SCHEMAS_DIR + '/' + typename + '.schema.json';
        return readJSONFile(filename).then(function (data) {
            return { filename: data.filename, schema: data.obj };
        });
    }
function load_schema ( typename ) { var filename = SCHEMAS_DIR + '/' + typename + '.schema.json' ; return readJSONFile ( filename ) . then ( function ( data ) { return { filename : data . filename , schema : data . obj } ; } ) ; }
The promise returns the loaded schema
The promise returns the loaded schema