diff options
author | Stephen Finucane <stephen@that.guru> | 2019-09-09 10:03:21 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2019-09-09 10:16:14 +0100 |
commit | 7f501f42038efcd909df6392fbea5d86c441f16d (patch) | |
tree | 3499fc1fb4880d86d7516778dbf94e18d50ab632 /docs | |
parent | 418b26a89c48824aee9615aa88f0527b42e53de8 (diff) | |
download | patchwork-7f501f42038efcd909df6392fbea5d86c441f16d.tar patchwork-7f501f42038efcd909df6392fbea5d86c441f16d.tar.gz |
docs: Use '>=' in OpenAPI schema template
This is consistent with how we're doing checks for v1.2 and reads a
little better, IMO.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api/schemas/patchwork.j2 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2 index 843981f..16d85a3 100644 --- a/docs/api/schemas/patchwork.j2 +++ b/docs/api/schemas/patchwork.j2 @@ -1233,7 +1233,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -1360,7 +1360,7 @@ components: title: ID type: integer readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -1417,7 +1417,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -1456,7 +1456,7 @@ components: readOnly: true allOf: - $ref: '#/components/schemas/PersonEmbedded' -{% if version > (1, 0) %} +{% if version >= (1, 1) %} mbox: title: Mbox type: string @@ -1468,7 +1468,7 @@ components: items: $ref: '#/components/schemas/SeriesEmbedded' readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} comments: title: Comments type: string @@ -1643,7 +1643,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -1721,7 +1721,7 @@ components: items: $ref: '#/components/schemas/SeriesEmbedded' readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} comments: title: Comments type: string @@ -1888,7 +1888,7 @@ components: $ref: '#/components/schemas/UserEmbedded' readOnly: true uniqueItems: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} subject_match: title: Subject match description: > @@ -1933,7 +1933,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -2083,7 +2083,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -2129,7 +2129,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string @@ -2273,7 +2273,7 @@ components: type: string format: uri readOnly: true -{% if version > (1, 0) %} +{% if version >= (1, 1) %} web_url: title: Web URL type: string |