microsoft/hve-core
Publicmirrored from https://github.com/microsoft/hve-coreAvailable
scripts/linting/schemas/collection.schema.json
84lines · modecode
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://github.com/microsoft/hve-core/schemas/collection.schema.json", |
| 4 | "title": "Collection Manifest Schema", |
| 5 | "description": "Schema for persona-targeted extension collection manifests", |
| 6 | "type": "object", |
| 7 | "required": [ |
| 8 | "$schema", |
| 9 | "id", |
| 10 | "name", |
| 11 | "displayName", |
| 12 | "description", |
| 13 | "publisher", |
| 14 | "personas" |
| 15 | ], |
| 16 | "properties": { |
| 17 | "$schema": { |
| 18 | "type": "string" |
| 19 | }, |
| 20 | "id": { |
| 21 | "type": "string", |
| 22 | "pattern": "^[a-z][a-z0-9-]*$", |
| 23 | "minLength": 1 |
| 24 | }, |
| 25 | "name": { |
| 26 | "type": "string", |
| 27 | "minLength": 1 |
| 28 | }, |
| 29 | "displayName": { |
| 30 | "type": "string", |
| 31 | "minLength": 1 |
| 32 | }, |
| 33 | "description": { |
| 34 | "type": "string", |
| 35 | "minLength": 1 |
| 36 | }, |
| 37 | "publisher": { |
| 38 | "type": "string", |
| 39 | "minLength": 1 |
| 40 | }, |
| 41 | "personas": { |
| 42 | "type": "array", |
| 43 | "items": { |
| 44 | "type": "string", |
| 45 | "pattern": "^[a-z][a-z0-9-]*$" |
| 46 | }, |
| 47 | "minItems": 1 |
| 48 | }, |
| 49 | "include": { |
| 50 | "$ref": "#/$defs/artifactGlobFilter" |
| 51 | }, |
| 52 | "exclude": { |
| 53 | "$ref": "#/$defs/artifactGlobFilter" |
| 54 | } |
| 55 | }, |
| 56 | "additionalProperties": false, |
| 57 | "$defs": { |
| 58 | "artifactGlobFilter": { |
| 59 | "type": "object", |
| 60 | "properties": { |
| 61 | "agents": { |
| 62 | "$ref": "#/$defs/globPatternArray" |
| 63 | }, |
| 64 | "prompts": { |
| 65 | "$ref": "#/$defs/globPatternArray" |
| 66 | }, |
| 67 | "instructions": { |
| 68 | "$ref": "#/$defs/globPatternArray" |
| 69 | }, |
| 70 | "skills": { |
| 71 | "$ref": "#/$defs/globPatternArray" |
| 72 | } |
| 73 | }, |
| 74 | "additionalProperties": false |
| 75 | }, |
| 76 | "globPatternArray": { |
| 77 | "type": "array", |
| 78 | "items": { |
| 79 | "type": "string", |
| 80 | "minLength": 1 |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | } |