]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: Use '>=' in OpenAPI schema template
authorStephen Finucane <stephen@that.guru>
Mon, 9 Sep 2019 09:03:21 +0000 (10:03 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 9 Sep 2019 09:16:14 +0000 (10:16 +0100)
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>
docs/api/schemas/patchwork.j2

index 843981f80cc18a2453f71314b7f1130e597da91c..16d85a33d188de89d9a8c1b978f3b2f387ab4bcc 100644 (file)
@@ -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