CMSgov / price-transparency-guide-validator

Validation tool to check output files required by the price-transparency-guide
Apache License 2.0
29 stars 13 forks source link

JSON Validator responds with "Valid JSON" but output file is different #44

Closed olderthandirt5 closed 2 years ago

olderthandirt5 commented 2 years ago

I ran the Validator against a provider-reference file and then again to an output file:

PS C:\cms\price-transparency-guide-validator> cms-mrf-validator validate c:\cms\data\3B_MRF_provider-reference.json v1.0.0 -t provider-reference Input JSON is valid.

PS C:\cms\price-transparency-guide-validator> cms-mrf-validator validate c:\cms\data\3B_MRF_provider-reference.json v1.0.0 -t provider-reference -o 3Bvalidation.txt

Output file contains:

Input is not a valid JSON Error(offset 32529): The document root must not be followed by other values. Input JSON is valid.

I changed the extension of the input to be able to upload it.

Will load different files to demonstrate the issue.

olderthandirt5 commented 2 years ago

Replaced demo files, shows same issue: 2validation.txt 2_MRF_provider-reference.txt e

mint-thompson commented 2 years ago

Thank you for reporting this. The input you provided should be reporting as not valid, since it contains multiple root nodes. The later output indicating that the input is valid should not be appearing. The team will be fixing this as soon as possible.