|
3071 | 3071 | "schema": { |
3072 | 3072 | "type": "array", |
3073 | 3073 | "items": { |
3074 | | - "$ref": "#/components/schemas/FileDiff" |
| 3074 | + "$ref": "#/components/schemas/SnapshotFileDiff" |
3075 | 3075 | } |
3076 | 3076 | } |
3077 | 3077 | } |
|
7032 | 7032 | "schema": { |
7033 | 7033 | "type": "array", |
7034 | 7034 | "items": { |
7035 | | - "$ref": "#/components/schemas/FileDiff" |
| 7035 | + "$ref": "#/components/schemas/VcsFileDiff" |
7036 | 7036 | } |
7037 | 7037 | } |
7038 | 7038 | } |
|
8146 | 8146 | }, |
8147 | 8147 | "required": ["type", "properties"] |
8148 | 8148 | }, |
8149 | | - "FileDiff": { |
| 8149 | + "SnapshotFileDiff": { |
8150 | 8150 | "type": "object", |
8151 | 8151 | "properties": { |
8152 | 8152 | "file": { |
8153 | 8153 | "type": "string" |
8154 | 8154 | }, |
8155 | | - "before": { |
8156 | | - "type": "string" |
8157 | | - }, |
8158 | | - "after": { |
| 8155 | + "patch": { |
8159 | 8156 | "type": "string" |
8160 | 8157 | }, |
8161 | 8158 | "additions": { |
|
8169 | 8166 | "enum": ["added", "deleted", "modified"] |
8170 | 8167 | } |
8171 | 8168 | }, |
8172 | | - "required": ["file", "before", "after", "additions", "deletions"] |
| 8169 | + "required": ["file", "patch", "additions", "deletions"] |
8173 | 8170 | }, |
8174 | 8171 | "Event.session.diff": { |
8175 | 8172 | "type": "object", |
|
8188 | 8185 | "diff": { |
8189 | 8186 | "type": "array", |
8190 | 8187 | "items": { |
8191 | | - "$ref": "#/components/schemas/FileDiff" |
| 8188 | + "$ref": "#/components/schemas/SnapshotFileDiff" |
8192 | 8189 | } |
8193 | 8190 | } |
8194 | 8191 | }, |
|
8700 | 8697 | "diffs": { |
8701 | 8698 | "type": "array", |
8702 | 8699 | "items": { |
8703 | | - "$ref": "#/components/schemas/FileDiff" |
| 8700 | + "$ref": "#/components/schemas/SnapshotFileDiff" |
8704 | 8701 | } |
8705 | 8702 | } |
8706 | 8703 | }, |
|
9842 | 9839 | "diffs": { |
9843 | 9840 | "type": "array", |
9844 | 9841 | "items": { |
9845 | | - "$ref": "#/components/schemas/FileDiff" |
| 9842 | + "$ref": "#/components/schemas/SnapshotFileDiff" |
9846 | 9843 | } |
9847 | 9844 | } |
9848 | 9845 | }, |
|
10372 | 10369 | "diffs": { |
10373 | 10370 | "type": "array", |
10374 | 10371 | "items": { |
10375 | | - "$ref": "#/components/schemas/FileDiff" |
| 10372 | + "$ref": "#/components/schemas/SnapshotFileDiff" |
10376 | 10373 | } |
10377 | 10374 | } |
10378 | 10375 | }, |
|
12122 | 12119 | "diffs": { |
12123 | 12120 | "type": "array", |
12124 | 12121 | "items": { |
12125 | | - "$ref": "#/components/schemas/FileDiff" |
| 12122 | + "$ref": "#/components/schemas/SnapshotFileDiff" |
12126 | 12123 | } |
12127 | 12124 | } |
12128 | 12125 | }, |
|
12760 | 12757 | } |
12761 | 12758 | } |
12762 | 12759 | }, |
| 12760 | + "VcsFileDiff": { |
| 12761 | + "type": "object", |
| 12762 | + "properties": { |
| 12763 | + "file": { |
| 12764 | + "type": "string" |
| 12765 | + }, |
| 12766 | + "patch": { |
| 12767 | + "type": "string" |
| 12768 | + }, |
| 12769 | + "additions": { |
| 12770 | + "type": "number" |
| 12771 | + }, |
| 12772 | + "deletions": { |
| 12773 | + "type": "number" |
| 12774 | + }, |
| 12775 | + "status": { |
| 12776 | + "type": "string", |
| 12777 | + "enum": ["added", "deleted", "modified"] |
| 12778 | + } |
| 12779 | + }, |
| 12780 | + "required": ["file", "patch", "additions", "deletions"] |
| 12781 | + }, |
12763 | 12782 | "Command": { |
12764 | 12783 | "type": "object", |
12765 | 12784 | "properties": { |
|
0 commit comments