Skip to content

Commit

Permalink
fix(json-schema-faker): change the order of extension functions in th…
Browse files Browse the repository at this point in the history
…e generator
  • Loading branch information
aleksandryackovlev committed Aug 31, 2020
1 parent 4fec346 commit a298234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ export const createGenerator: (
return faker;
});

callback(jsf, faker);

jsf.define('example', (value) => {
return value;
});

jsf.define('examples', handleExamples);

callback(jsf, faker);

return jsf;
};
/* eslint-enable @typescript-eslint/no-empty-function */

0 comments on commit a298234

Please sign in to comment.