We welcome contributions to the project! 🍺
If you are submitting a bug report, please include the following:
- the JSON Schema content that fails: go to the demo page, paste the schema into the textarea on the left, click
Generate example
, and then copy the resulting URL from the browser address bar and paste it here. This will make it easier for us to reproduce and fix the bug. Thank you in advance! 🍺 Otherwise please paste the schema inline in your bug report. - the result you got
- the result you expected
- When submitting bug reports, paste your schema example whenever possible. This will save us from having to ask you for it later.
- When submitting Pull Requests (PRs), you should request to merge your changes into our
develop
branch. - Our approach to testing is described in docs/TESTING.md.
- PRs without specs will not be merged anytime soon!
- Create a new entry in the CHANGELOG file,
- Re-build and re-release the online demo, see
json-schema-faker
gh-pages branch.
npm run dev
— Run the tests and watch (preferred during development)npm run lint
— Run eslint on all sourcesnpm run test:unit
— Run unit testsnpm run test:schema
— Run schema testsnpm run cover
— Run istanbul + jasmine-nodenpm run cover:up
— Upload to coveralls (CI only)npm run dist
— Prepare all assets with locales for CDN supportnpm test
— Run all the tests
npm run tsc
— Compile TypeScript to JavaScript (via commonJS)