Skip to content

Commit dd135b3

Browse files
committed
combine unique into INDEX_TYPE param
specify multi-values explicitly with type: array specify serialisation with explode fix UWS WAIT param example
1 parent 21d3afc commit dd135b3

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

openapi/uws/uws-wait-param.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ description: wait for the specified time in seconds or until the phase changes
44
required: false
55
schema:
66
type: integer
7-
example: WAIT=60
7+
example: 60
88

openapi/vosi/vosi-table-ops.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,38 @@ post:
2828
in: query
2929
description: a single table name as provided in tap_schema
3030
required: true
31+
explode: false
3132
schema:
3233
type: string
3334
- name: INDEX
3435
in: query
3536
description: |
3637
create index operation; value is a column name in the table
37-
or a comma-separated list of columns
38-
required: false
38+
or a comma-separated list of columns; order matters
39+
required: true
40+
# style: form (default), explode: false, and type: array
41+
# means multiple values are in a comma separated list
42+
explode: false
3943
schema:
40-
type: string
44+
type: array
45+
items:
46+
type: string
4147
- name: INDEX_TYPE
4248
in: query
4349
description: |
4450
qualifier to create a specialised index: a value of long-lat
4551
requires 2 numeric columns which are used as longitude,latitude
4652
pairs (spherical coordinates); a value of x-y requires 2 numeric
47-
columns which are used as x,y pairs (cartesian coordinates)
53+
columns which are used as x,y pairs (cartesian coordinates);
4854
required: false
55+
# style: form (default), explode: true, and type: array
56+
# means the normal zero or more param=value
57+
explode: true
4958
schema:
50-
type: string
51-
enum: [long-lat,x-y]
52-
- name: UNIQUE
53-
in: query
54-
description: qualifier to create a unique index
55-
required: false
56-
schema:
57-
type: boolean
59+
type: array
60+
items:
61+
type: string
62+
enum: [long-lat,x-y,unique]
5863
responses:
5964
'303':
6065
$ref: ../uws/uws-responses.yaml#/created

0 commit comments

Comments
 (0)