Skip to content

Commit

Permalink
Introduce format for .Validation files (microsoft#16104)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>
  • Loading branch information
jamespik and denelon authored Jun 8, 2021
1 parent 563a4fd commit 0b49657
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions schemas/JSON/validation/ValidationSchema.1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$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"
}
}
}
}
}
}

0 comments on commit 0b49657

Please sign in to comment.