A playground with live editor for Kong's spec renderer. Supports:
- JSON and YAML file formats
- OpenAPI 2.0, 3.0 and 3.1 (including callbacks)
- AsyncAPI
pnpm installpnpm devpnpm typecheckLint package files, and optionally auto-fix detected issues.
# Stylelint only
pnpm run stylelint
# Stylelint and fix
pnpm run stylelint:fix
# ESLint only
pnpm run lint
# ESLint and fix
pnpm run lint:fixpnpm run buildThis repo uses Conventional Commits.
Commitizen and Commitlint are used to help build and enforce commit messages.
It is highly recommended to use the following command in order to create your commits:
pnpm run commitThis will trigger the Commitizen interactive prompt for building your commit message.
Lefthook is used to manage Git Hooks within the repo.
- A
commit-msghook is automatically setup that enforces commit message stands withcommitlint, seelefthook.ymal - A
pre-pushhook is used that runseslintbefore allowing you to push your changes to the repository
Additionally, CI will use commitlint to validate the commits associated with a PR in the Lint and Validate job.