Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@api3/airnode-validator
Advanced tools
The validator is used by the Docker Images to validate the configuration files you provide when deploying an Airnode. You can also use the validator to check the configuration files for correct formatting and other issues while creating them.
@api3/airnode-validator
The validator is used by the Docker Images to validate the configuration files you provide when deploying an Airnode. You can also use the validator to check the configuration files for correct formatting and other issues while creating them.
Validator is currently an internal dependency of Airnode and not intended to be used in a standalone way.
You can clone and build the Airnode monorepo then run the validator as a yarn script from inside the
packages/airnode-validator
directory.
# execute the validator
yarn run cli:validator --template="config" --specs="exampleSpecs/config.json"
# validator output
{
"valid": true,
"messages": []
}
For debugging purposes it might be useful to run the validator with path to template file instead of providing the format name:
yarn run cli:validator --template="templates/0.2/config.json" --specs="myProject/config/config.json"
# OR
yarn run cli:convertor --template="conversions/oas@3.0------ois@1.0.json" --specs="myProject/config/oas.json"
Validator behavior can be configured with validator templates, which are regular json
files using special keywords for
specification conversion and validation. Usage of these keywords is described in the following chapters:
Source documentation markdown files are located in docs/src/
directory. All template related examples are located in
test/fixtures/
and injected into markdown using
markdown-snippet-injector by running yarn run docs
.
Generated markdown files can be found in docs/
, test files using the same examples can be found in test/
directory.
FAQs
> A package/CLI tool that can be used to validate and convert airnode specification files
The npm package @api3/airnode-validator receives a total of 271 weekly downloads. As such, @api3/airnode-validator popularity was classified as not popular.
We found that @api3/airnode-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.