microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
scripts/linting/schemas/root-community-frontmatter.schema.json
43lines · modecode
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://github.com/microsoft/hve-core/schemas/root-community-frontmatter.schema.json", |
| 4 | "title": "Root Community File Frontmatter Schema", |
| 5 | "description": "Frontmatter schema for root community files (README.md, CONTRIBUTING.md, etc.)", |
| 6 | "allOf": [ |
| 7 | { |
| 8 | "$ref": "base-frontmatter.schema.json" |
| 9 | } |
| 10 | ], |
| 11 | "type": "object", |
| 12 | "required": ["title", "description"], |
| 13 | "properties": { |
| 14 | "title": { |
| 15 | "type": "string", |
| 16 | "minLength": 1 |
| 17 | }, |
| 18 | "description": { |
| 19 | "type": "string", |
| 20 | "minLength": 1 |
| 21 | }, |
| 22 | "author": { |
| 23 | "type": "string", |
| 24 | "description": "Recommended: Author or organization name" |
| 25 | }, |
| 26 | "ms.date": { |
| 27 | "$ref": "base-frontmatter.schema.json#/definitions/iso8601Date", |
| 28 | "description": "Recommended: Last modified date" |
| 29 | }, |
| 30 | "ms.topic": { |
| 31 | "type": "string", |
| 32 | "enum": ["overview", "concept", "reference", "guide", "hub-page"], |
| 33 | "description": "Recommended: Document topic type" |
| 34 | }, |
| 35 | "keywords": { |
| 36 | "$ref": "base-frontmatter.schema.json#/definitions/keywordsArray" |
| 37 | }, |
| 38 | "estimated_reading_time": { |
| 39 | "$ref": "base-frontmatter.schema.json#/definitions/positiveInteger" |
| 40 | } |
| 41 | }, |
| 42 | "additionalProperties": true |
| 43 | } |