Skip to content

Commit 992c729

Browse files
committed
add openapi-linter and rename openapi-example
add global tags to openapi example
1 parent 8335dc9 commit 992c729

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

openapi-linter

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [[ "$1" == "-it" ]]; then
4+
docker run -it --rm -v $PWD:/work:ro dshanley/vacuum /bin/bash
5+
else
6+
docker run --rm -v $PWD:/work:ro dshanley/vacuum lint --no-clip -d openapi.yaml
7+
fi
8+
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ info:
55
description: This is an example of using VOSI-1.2 components.
66
servers:
77
- url: /example
8+
9+
tags:
10+
- name: VOSI Capabilities
11+
- name: VOSI Table Metadata
12+
813
paths:
914
# notes: this is how another service like TAP would include VOSI endpoints using
1015
# a local copy; the commented out $ref to a standard location would also work
1116
/tables:
12-
$ref: ./vosi-tableset.yaml
17+
$ref: ./openapi/vosi/vosi-tableset.yaml
1318
#$ref: https://ivoa.net/std/VOSI/vosi-tableset.yaml
1419
/tables/{name}:
15-
$ref: ./vosi-table.yaml
20+
$ref: ./openapi/vosi/vosi-table.yaml
1621
#$ref: https://ivoa.net/std/VOSI/vosi-table.yaml
1722
/capabilities:
18-
$ref: ./paths/vosi-capabilities.yaml
23+
$ref: ./openapi/vosi/vosi-capabilities.yaml
1924
#$ref: https://ivoa.net/std/VOSI/vosi-capabilities.yaml

0 commit comments

Comments
 (0)