code-gov-web icon indicating copy to clipboard operation
code-gov-web copied to clipboard

Schema Validator - licenses field expected value array

Open RicardoAReyes opened this issue 7 years ago • 0 comments

Metadata 2.0.0 Schema Validator not validating arrays correctly.

Expected Behavior

Validator is expected to identify syntax errors on "licenses" field array. The system does not show syntax error when an array is missing.

Current Behavior

On the validator to screen to show the licenses field error when an array is not being used - expected value.

Possible Solution

Improve error checking on code.json file and show all syntax errors.

Steps to Reproduce (for bugs)

on a code.json file add the following code for licenses field on a release.

"licenses": { "name": "Apache v2", "URL": "https://www.apache.org/licenses/LICENSE-2.0" },

Your Environment

https://www.code.gov/#/policy-guide/docs/compliance/inventory-code/tools/validate-schema

RicardoAReyes avatar Jan 16 '18 20:01 RicardoAReyes