Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@api3/airnode-validator

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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.

  • 0.6.2
  • npm
  • Socket score

Version published
Weekly downloads
295
decreased by-15.23%
Maintainers
3
Weekly downloads
 
Created
Source

@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.

Usage

General usage of validator and convertor is described in the API3 Documentation.

Build Manually

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"

Templates

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:

Other Documentation

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

Package last updated on 02 May 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc