Skip to content

Commit 789f447

Browse files
docs: update schema with patch attention set
Signed-off-by: Victor Accarini <[email protected]>
1 parent f1feb60 commit 789f447

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

docs/api/schemas/latest/patchwork.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,11 @@ components:
23122312
type: array
23132313
items:
23142314
$ref: '#/components/schemas/PatchEmbedded'
2315+
attention_set:
2316+
title: AttentionSet
2317+
type: array
2318+
items:
2319+
$ref: '#/components/schemas/PatchAttentionSet'
23152320
PatchDetail:
23162321
type: object
23172322
title: Patches
@@ -2390,6 +2395,11 @@ components:
23902395
type: array
23912396
items:
23922397
type: integer
2398+
attention_set:
2399+
title: Attention Set
2400+
type: array
2401+
items:
2402+
type: integer
23932403
Person:
23942404
type: object
23952405
title: Person
@@ -2831,6 +2841,19 @@ components:
28312841
type: string
28322842
format: uri
28332843
readOnly: true
2844+
PatchAttentionSet:
2845+
type: object
2846+
title: PatchAttentionSet
2847+
description: |
2848+
A user interested or with pending actions over a patch
2849+
properties:
2850+
user:
2851+
$ref: '#/components/schemas/UserEmbedded'
2852+
last_updated:
2853+
title: last_updated
2854+
type: string
2855+
format: iso8601
2856+
readOnly: true
28342857
PatchEmbedded:
28352858
type: object
28362859
title: Patch

docs/api/schemas/patchwork.j2

+29
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,13 @@ components:
23972397
type: array
23982398
items:
23992399
$ref: '#/components/schemas/PatchEmbedded'
2400+
{% endif %}
2401+
{% if version >= (1, 4) %}
2402+
attention_set:
2403+
title: AttentionSet
2404+
type: array
2405+
items:
2406+
$ref: '#/components/schemas/PatchAttentionSet'
24002407
{% endif %}
24012408
PatchDetail:
24022409
type: object
@@ -2477,6 +2484,13 @@ components:
24772484
type: array
24782485
items:
24792486
type: integer
2487+
{% endif %}
2488+
{% if version >= (1, 4) %}
2489+
attention_set:
2490+
title: Attention Set
2491+
type: array
2492+
items:
2493+
type: integer
24802494
{% endif %}
24812495
Person:
24822496
type: object
@@ -2941,6 +2955,21 @@ components:
29412955
type: string
29422956
format: uri
29432957
readOnly: true
2958+
{% if version >= (1, 4) %}
2959+
PatchAttentionSet:
2960+
type: object
2961+
title: PatchAttentionSet
2962+
description: |
2963+
A user interested or with pending actions over a patch
2964+
properties:
2965+
user:
2966+
$ref: '#/components/schemas/UserEmbedded'
2967+
last_updated:
2968+
title: last_updated
2969+
type: string
2970+
format: iso8601
2971+
readOnly: true
2972+
{% endif %}
29442973
PatchEmbedded:
29452974
type: object
29462975
title: Patch

docs/api/schemas/v1.4/patchwork.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,11 @@ components:
23122312
type: array
23132313
items:
23142314
$ref: '#/components/schemas/PatchEmbedded'
2315+
attention_set:
2316+
title: AttentionSet
2317+
type: array
2318+
items:
2319+
$ref: '#/components/schemas/PatchAttentionSet'
23152320
PatchDetail:
23162321
type: object
23172322
title: Patches
@@ -2390,6 +2395,11 @@ components:
23902395
type: array
23912396
items:
23922397
type: integer
2398+
attention_set:
2399+
title: Attention Set
2400+
type: array
2401+
items:
2402+
type: integer
23932403
Person:
23942404
type: object
23952405
title: Person
@@ -2831,6 +2841,19 @@ components:
28312841
type: string
28322842
format: uri
28332843
readOnly: true
2844+
PatchAttentionSet:
2845+
type: object
2846+
title: PatchAttentionSet
2847+
description: |
2848+
A user interested or with pending actions over a patch
2849+
properties:
2850+
user:
2851+
$ref: '#/components/schemas/UserEmbedded'
2852+
last_updated:
2853+
title: last_updated
2854+
type: string
2855+
format: iso8601
2856+
readOnly: true
28342857
PatchEmbedded:
28352858
type: object
28362859
title: Patch

0 commit comments

Comments
 (0)