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

Allow strict checking of required/optional attributes #82

Closed shaselton-usds closed 1 year ago

shaselton-usds commented 1 year ago

Validator to take a flag that would check whether all of the optional/required attributes are present in the file during validation. Flag could look like "--strict_checking=true", if this is the case, the validator would augment the schema to include additionalProperties=false in the schema before running the validation step. This would help with misspellings but would restrict adding additional attributes that those may feel are helpful in providing context.