Last active
December 22, 2015 18:58
-
-
Save vcsjones/e5d5c5662e1a23081e22 to your computer and use it in GitHub Desktop.
Fiddler Extension Package Schema and Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files": [ | |
{"src": "Contents/example.dll"} | |
], | |
"metadata": { | |
"id": "e.1xample", | |
"authors": [ "Kevin Jones" ], | |
"owners": [ "Kevin Jones" ], | |
"requireLicenseAcceptance": false, | |
"tags": [ "example" ], | |
"description": "An example package that does nothing.", | |
"version": "0.1", | |
"type": "script", | |
"licenseUrl": "https://www.example.com", | |
"iconUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", | |
"projectUrl": "https://www.example.com" | |
}, | |
"requirements": { | |
"minFiddlerVersion": "4.6.0.0" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "http://fiddlerdepot.org/schemas/2015-12#", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"schemas": [ ], | |
"version": 0.1, | |
"type": "object", | |
"title": "Fiddler Package Manifest Schema", | |
"properties": { | |
"metadata": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"pattern": "^[a-zA-Z][a-zA-Z0-9.-_]+$" | |
}, | |
"version": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string", | |
"enum": [ "script", "inspector" ] | |
}, | |
"authors": { | |
"type": "array", | |
"minItems": 1, | |
"uniqueItems": true, | |
"items": { | |
"type": "string" | |
} | |
}, | |
"owners": { | |
"type": "array", | |
"minItems": 1, | |
"uniqueItems": true, | |
"items": { | |
"type": "string" | |
} | |
}, | |
"licenseUrl": { | |
"type": "string", | |
"pattern": "^https?://.+$" | |
}, | |
"projectUrl": { | |
"type": "string", | |
"pattern": "^https?://.+$" | |
}, | |
"iconUri": { | |
"type": "string", | |
"pattern": "^(https?://|data:).+$" | |
}, | |
"requireLicenseAcceptance": { | |
"type": "boolean" | |
}, | |
"description": { | |
"type": "string" | |
}, | |
"tags": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"uniqueItems": true, | |
"minItems": 1 | |
} | |
}, | |
"required": [ "id", "version", "type", "authors", "requireLicenseAcceptance", "description", "tags" ], | |
"additionalProperties": false | |
}, | |
"files": { | |
"type": "array", | |
"minItems": 1, | |
"items": { | |
"type": "object", | |
"properties": { | |
"src": { | |
"type": "string" | |
} | |
}, | |
"required": [ "src" ], | |
"additionalProperties": false | |
} | |
}, | |
"requirements": { | |
"type": "object", | |
"properties": { | |
"minFiddlerVersion": { | |
"type": "string", | |
"pattern": "^\\d+.\\d+.\\d+.\\d+$" | |
} | |
}, | |
"additionalProperties": false | |
} | |
}, | |
"required": [ "metadata", "files" ], | |
"additionalProperties": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment