Skip to content

Commit 8154181

Browse files
committed
fix bad references in openapi.yml
1 parent ed6dca5 commit 8154181

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

openapi.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ paths:
4545
'200':
4646
$ref: '#/components/responses/Queryables'
4747
default:
48-
$ref: '../../core/commons.yaml#/components/responses/Error'
48+
$ref: '#/components/responses/Error'
4949
/collections/{collectionId}:
5050
get:
5151
description: |-
@@ -89,7 +89,7 @@ paths:
8989
'200':
9090
$ref: '#/components/responses/Queryables'
9191
default:
92-
$ref: '../../core/commons.yaml#/components/responses/Error'
92+
$ref: '#/components/responses/Error'
9393
components:
9494
parameters:
9595
filter:
@@ -161,11 +161,28 @@ components:
161161
The coordinate reference system (CRS) used by spatial literals in the 'filter' value. The only value that STAC APIs must
162162
accept is 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'.
163163
type: string
164-
format: uri
164+
format: uri
165+
exception:
166+
type: object
167+
description: |-
168+
Information about the exception: an error code plus an optional description.
169+
required:
170+
- code
171+
properties:
172+
code:
173+
type: string
174+
description:
175+
type: string
165176
responses:
166177
Queryables:
167178
description: A JSON Schema defining the Queryables allowed in CQL2 expressions
168179
content:
169180
application/schema+json:
170181
schema:
171182
type: object
183+
Error:
184+
description: An error occurred.
185+
content:
186+
application/json:
187+
schema:
188+
$ref: '#/components/schemas/exception'

package.json

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
{
2-
"name": "api-spec",
2+
"name": "stac-api-filter-extension-spec",
33
"version": "1.0.0-rc.1",
4-
"description": "STAC API helpers to generate, serve and check the API spec.",
5-
"repository": "https://github.com/radiantearth/stac-api-spec",
4+
"description": "STAC API helpers to check the API spec.",
5+
"repository": "https://github.com/stac-api-extensions/filter",
66
"license": "Apache-2.0",
77
"scripts": {
8-
"serve": "redoc-cli serve core/openapi.yaml --watch --options.expandResponses \"200,201,202,203,204\" --options.pathInMiddlePanel true",
98
"check": "npm run check-markdown && npm run check-openapi",
10-
"check-markdown": "remark . --frail --ignore-pattern stac-spec/",
11-
"check-openapi": "npm run check-openapi-core && npm run check-openapi-commons && npm run check-openapi-ogcapi-features && npm run check-openapi-item-search && npm run check-openapi-fragments && npm run check-openapi-collections && npm run check-openapi-children",
12-
"check-openapi-core": "spectral lint core/openapi.yaml --ruleset .circleci/.spectral.yml",
13-
"check-openapi-commons": "spectral lint core/commons.yaml --ruleset .circleci/.spectral-fragments.yml",
14-
"check-openapi-ogcapi-features": "spectral lint ogcapi-features/openapi.yaml ogcapi-features/extensions/*/openapi.yaml --ruleset .circleci/.spectral.yml",
15-
"check-openapi-item-search": "spectral lint item-search/openapi.yaml --ruleset .circleci/.spectral.yml",
16-
"check-openapi-fragments": "spectral lint fragments/*/openapi.yaml --ruleset .circleci/.spectral-fragments.yml",
17-
"check-openapi-collections": "spectral lint collections/openapi.yaml --ruleset .circleci/.spectral.yml",
18-
"check-openapi-children": "spectral lint children/openapi.yaml --ruleset .circleci/.spectral.yml",
19-
"build-openapi": ".circleci/build-openapi.sh",
20-
"publish-openapi": "node .circleci/publish.js",
21-
"check-stac-spec-changes": "git diff --quiet HEAD ${npm_config_compare_to} -- stac-spec"
9+
"check-markdown": "remark . --frail",
10+
"check-openapi": "spectral lint openapi.yaml --ruleset .circleci/.spectral-fragments.yml"
2211
},
2312
"dependencies": {
2413
"@redocly/openapi-cli": "^1.0.0-beta.94",

0 commit comments

Comments
 (0)