
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
price-transparency-guide-validator
Advanced tools
Node-based entry point for machine-readable file validator
This tool is used to validate machine-readable files in JSON format against the schemas published by CMS.
Clone this repository using Git in the desired installation location:
git clone https://github.com/CMSgov/price-transparency-guide-validator.git
Make sure that Docker is running:
docker ps
If this shows a table of active containers and their resource usage, then Docker is active.
From the directory containing the clone, build the validator Docker image:
cd price-transparency-guide-validator
docker build -t validator .
Install the Node script with the -g global flag so it can be run from any location:
npm install -g cms-mrf-validator
The validator can be run from any directory. For basic usage instructions:
cms-mrf-validator help
Tool for validating health coverage machine-readable files.
Options:
-h, --help display help for command
Commands:
validate [options] <data-file> <schema-version> Validate a file against a specific published version of a CMS schema.
update Update the available schemas from the CMS repository.
help [command] display help for command
In order to perform validation, schemas must be available to the validator tool. The latest schemas can be obtained using the update command.
From the installed directory:
cms-mrf-validator update
Validating a file against one of the provided schemas is the primary usage of this tool. Be sure that you have the latest schemas available by running the update command first.
From the installed directory:
cms-mrf-validator validate <data-file> <schema-version> [-o out] [-t target]
Example usages:
# basic usage, printing output directly and using the default in-network-rates schema
cms-mrf-validator validate my-data.json v1.0.0
# output will be written to a file. validate using allowed-amounts schema
cms-mrf-validator validate my-data.json v1.0.0 -o results.txt -t allowed-amounts
Further details:
Validate a file against a specific published version of a CMS schema.
Arguments:
data-file path to data file to validate
schema-version version of schema to use for validation
Options:
-o, --out <out> output path
-t, --target <schema> name of schema to use (choices: "allowed-amounts", "in-network-rates", "provider-reference",
"table-of-contents", default: "in-network-rates")
-h, --help display help for command
This project contains sample JSON files that can be used to familiarize yourself with the validation tool. These examples can be found in the test-files directory.
Running the command from the root of the project:
cms-mrf-validator validate test-files/in-network-rates-fee-for-service-sample.json v1.0.0
Output:
Input JSON is valid.
cms-mrf-validator validate test-files/allowed-amounts-error.json v1.0.0 -t allowed-amounts
Output:
Input JSON is invalid.
Error Name: type
Message: Property has a type 'integer' that is not in the following list: 'string'.
Instance: #/out_of_network/0/allowed_amounts/0/service_code/3
Schema: #/definitions/allowed_amounts/properties/service_code/items
Invalid schema: #/definitions/allowed_amounts/properties/service_code/items
Invalid keyword: type
Invalid code: 20
Invalid message: Property has a type '%actual' that is not in the following list: '%expected'.
Invalid document: #/out_of_network/0/allowed_amounts/0/service_code/3
Error report:
{
"type": {
"expected": [
"string"
],
"actual": "integer",
"errorCode": 20,
"instanceRef": "#/out_of_network/0/allowed_amounts/0/service_code/3",
"schemaRef": "#/definitions/allowed_amounts/properties/service_code/items"
}
}
This validation tool is based on rapidjson which is a high performance C++ JSON parser. You can find various benchmarks on rapidjson's site that should give the user an idea on what to expect when using.
The exact amount of time needed for the validator to run will vary based on input file size and the machine running the validator. On a sample system with a 2.60GHz CPU and 16GB of memory, a typical processing rate is approximately 25 megabytes of input per second.
FAQs
Node-based entry point for machine-readable file validator
We found that price-transparency-guide-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.