Files
winget-pkgs/schemas/JSON/validation/ValidationSchema.1.0.0.json
T
jamespikanddenelon 0b4965777e Introduce format for .Validation files (#16104)
* Introduce format for .Validation files

As part of the validation a pull request, a variety of tests are run to enforce various policy rules for submitting to the winget-pkgs catalog.
.Validation files will provide a mechanism by which waivers to certain policy rules may be persistently granted at either an application or publisher level.

* Apply suggestions from code review

Co-authored-by: denelon <denelon@microsoft.com>

* Update and rename ValidationSchema.json to ValidationSchema.1.0.0.json

Add version of the schema to the file and aka.ms

* Adjust Waiver version to validation version.

Co-authored-by: denelon <denelon@microsoft.com>
2021-06-08 16:24:48 -07:00

48 lines
1.5 KiB
JSON

{
"$id": "https://aka.ms/winget-validation.1.0.0.schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"title": "Windows Package Manager Community Repository Manifest Validation Schema",
"description": "Describes validation file that containers policy waivers that may apply to an application or publisher.",
"type": "object",
"required": [
"ValidationVersion",
"Waivers"
],
"additionalProperties": true,
"properties": {
"ValidationVersion": {
"description": "Version of validation file. Used to handle breaking changes, should the need arise.",
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"Waivers": {
"description": "Waivers that apply to this application or publisher",
"type": "array",
"items": {
"description": "An id, test plan, and catalog path defining the waiver.",
"type": "object",
"required": [
"WaiverIdentifier",
"TestPlan",
"PackagePath"
],
"additionalProperties": true,
"properties": {
"WaiverIdentifier": {
"description": "Unique identifier for this waiver.",
"type": "string"
},
"TestPlan": {
"description": "Testplan to be waived.",
"type": "string"
},
"PackagePath": {
"description": "Path to the metadata being waived.",
"type": "string"
}
}
}
}
}
}