Specs commands
The Specs commands are used to build
, lint
and validate the REST API specs.
Usage
client
defaults toall
The
client
parameter is variadic, you can pass multipleclient
name
bash
yarn docker build specs <client... | all>
bash
yarn docker build specs <client... | all>
Available options
Option | Command | Description |
---|---|---|
verbose | -v, --verbose | Make the process verbose, display logs from third party tools |
interactive | -i, --interactive | Open prompt to query parameters |
skip cache | -s, --skip-cache | Skip cache checking to force building specs |
Build
Build all specs
bash
yarn docker build specs
bash
yarn docker build specs
Build specific spec
bash
yarn docker build specs recommend
bash
yarn docker build specs recommend
Build many spec
bash
yarn docker build specs recommend search ingestion
bash
yarn docker build specs recommend search ingestion
Lint
Fix specs
Automatically done when building specs
bash
yarn specs:fix
bash
yarn specs:fix
Check specs
If you just want to check the format (not override the files)
bash
yarn specs:lint <client>yarn specs:lint search
bash
yarn specs:lint <client>yarn specs:lint search