Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Schema Validator - licenses field expected value array #403

Open
RicardoAReyes opened this issue Jan 16, 2018 · 0 comments
Open

Schema Validator - licenses field expected value array #403

RicardoAReyes opened this issue Jan 16, 2018 · 0 comments

Comments

@RicardoAReyes
Copy link
Contributor

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 RicardoAReyes changed the title Schema Validator - Schema Validator - licenses field expected value array Jan 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants