|
| 1 | +$schema: https://json-schema.org/draft/2020-12/schema |
| 2 | +$id: common-defs.yaml |
| 3 | +title: Common definitions |
| 4 | +type: object |
| 5 | +$defs: |
| 6 | + notes: |
| 7 | + type: array |
| 8 | + description: List of noteworthy pieces of information for the item. |
| 9 | + items: |
| 10 | + type: string |
| 11 | + |
| 12 | + meta: |
| 13 | + type: array |
| 14 | + description: A list of meta properties about the item and it's documentation. |
| 15 | + items: |
| 16 | + type: object |
| 17 | + properties: |
| 18 | + needs_checking: |
| 19 | + type: string |
| 20 | + description: Describe why the item needs checking by another person. What's problematic? |
| 21 | + |
| 22 | + preview_images: |
| 23 | + type: array |
| 24 | + description: A list of picture assets demonstrating the item. |
| 25 | + items: |
| 26 | + type: object |
| 27 | + required: |
| 28 | + - path |
| 29 | + properties: |
| 30 | + path: |
| 31 | + type: string |
| 32 | + description: A relative or repository-absolute path to an asset file. |
| 33 | + description: |
| 34 | + type: string |
| 35 | + description: Brief summary of the content in the picture. |
| 36 | + |
| 37 | + version: |
| 38 | + type: object |
| 39 | + description: Version information when the item got added/deprecated/removed. |
| 40 | + properties: |
| 41 | + added: |
| 42 | + type: string |
| 43 | + description: Version when this item was added to MTA. |
| 44 | + removed: |
| 45 | + type: string |
| 46 | + description: Version when this item was removed from MTA. |
| 47 | + deprecated: |
| 48 | + type: string |
| 49 | + description: Version when this item was deprecated in MTA. |
| 50 | + replacement: |
| 51 | + type: string |
| 52 | + description: An optional replacement for this item. |
| 53 | + |
| 54 | + issues: |
| 55 | + type: array |
| 56 | + description: A list of related issues for this item. |
| 57 | + items: |
| 58 | + type: object |
| 59 | + required: |
| 60 | + - id |
| 61 | + - description |
| 62 | + properties: |
| 63 | + id: |
| 64 | + type: integer |
| 65 | + description: Numeric identifier of the GitHub issue. |
| 66 | + description: |
| 67 | + type: string |
| 68 | + description: Description or summary for this GitHub issue. |
| 69 | + |
| 70 | + examples: |
| 71 | + type: array |
| 72 | + description: A list of source code examples demonstrating the item. |
| 73 | + items: |
| 74 | + type: object |
| 75 | + required: |
| 76 | + - path |
| 77 | + properties: |
| 78 | + path: |
| 79 | + type: string |
| 80 | + description: A relative or repository-absolute path to an example source file. |
| 81 | + description: |
| 82 | + type: string |
| 83 | + description: Description for this source code example. |
| 84 | + append: |
| 85 | + type: boolean |
| 86 | + default: false |
| 87 | + description: If set to true, this example will be appended to the previous example. |
| 88 | + |
| 89 | + see_also: |
| 90 | + type: array |
| 91 | + description: | |
| 92 | + A list of other categories for further reading. |
| 93 | + Every function/event/element will implicitly display it's own category in *See Also*, unless you |
| 94 | + introduce this property, then you have to be explicit about it. |
| 95 | + items: |
| 96 | + type: string |
| 97 | + pattern: "^(category):" |
| 98 | + uniqueItems: true |
0 commit comments