The validate-config.js script's purpose is schema validation. Instead of custom logic that's hard to maintain, let's use jsonschema and describe the valid states of our package file extension using JSON Schema.
The detected errors should be displayed as MSBuild errors using the handleErrorObject or handleErrorMessage functions from this repo (see OSOE-92)
Once done, we should review if we use custom JSON structures anywhere else and if so, create schemas for them as well.
Followup to OSOE-84.
The validate-config.js script's purpose is schema validation. Instead of custom logic that's hard to maintain, let's use jsonschema and describe the valid states of our package file extension using JSON Schema.
The detected errors should be displayed as MSBuild errors using the handleErrorObject or handleErrorMessage functions from this repo (see OSOE-92)
Once done, we should review if we use custom JSON structures anywhere else and if so, create schemas for them as well.
Jira issue