Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a few minor openapi spec issues, upgrade remark and spectral #287

Merged
merged 7 commits into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/.spectral-fragments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ rules:
openapi-tags: off
info-contact: off
oas3-api-servers: off
oas3-unused-components-schema: off
oas3-unused-component: off
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name of this changed between spectral 5 and 6

operation-operationId: off
oas3-parameter-description: true
43 changes: 0 additions & 43 deletions .circleci/rc.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ This is the list of all extensions that are contained in the stac-api-spec repos

| Extension Name | Scope* | Description | Maturity |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| [Fields](item-search/README.md#fields-extension) | [Item Search](item-search/) request | Adds parameter to control which fields are returned in the response. | Candidate |
| [Filter](item-search/README.md#filter-extension) | [Item Search](item-search/) and [STAC API - Features](ogcapi-features) `/items` requests | Adds parameter to search Item and Collection properties. | Pilot |
| [Context](item-search/README.md#context-extension) | [Item Search](item-search/) response ([ItemCollection](fragments/itemcollection/README.md)) | Adds search related metadata (context) to ItemCollection. | Candidate |
| [Sort](item-search/README.md#sort-extension) | [Item Search](item-search/) request | Adds Parameter to control sorting of returns results. | Candidate |
| [Transaction](ogcapi-features/extensions/transaction/README.md) | [STAC API - Features](ogcapi-features) POST on `/items` endpoint, DELETE/PUT on `/items/{itemId}` endpoint | Adds PUT and DELETE endpoints for the creation, editing, and deleting of Item objects. | Candidate |
| [Fields](item-search/README.md#fields-extension) | [Item Search](item-search/) request | Adds parameter to control which fields are returned in the response. | Candidate |
| [Filter](item-search/README.md#filter-extension) | [Item Search](item-search/) and [STAC API - Features](ogcapi-features) `/items` requests | Adds parameter to search Item and Collection properties. | Pilot |
| [Context](item-search/README.md#context-extension) | [Item Search](item-search/) response ([ItemCollection](fragments/itemcollection/README.md)) | Adds search related metadata (context) to ItemCollection. | Candidate |
| [Sort](item-search/README.md#sort-extension) | [Item Search](item-search/) request | Adds Parameter to control sorting of returns results. | Candidate |
| [Transaction](ogcapi-features/extensions/transaction/README.md) | [STAC API - Features](ogcapi-features) POST on `/items` endpoint, DELETE/PUT on `/items/{itemId}` endpoint | Adds PUT and DELETE endpoints for the creation, editing, and deleting of Item objects. | Candidate |
| [Items and Collections API Version](ogcapi-features/extensions/version/README.md) | [STAC API - Features](ogcapi-features) on `/items` endpoint | Adds GET versions resource to Collection and Item endpoints and provides semantics for a versioning scheme for Collection and Item objects. | *Proposal* |
| [Query](item-search/README.md#query-extension) | [Item Search](item-search/) request | Adds parameter to search Item and Collection properties. | Candidate |
| [Query](item-search/README.md#query-extension) | [Item Search](item-search/) request | Adds parameter to search Item and Collection properties. | Candidate |

### Conformance classes of extensions

Expand Down
12 changes: 6 additions & 6 deletions fragments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ things clean we specify a conformance class for each, so clients can know exactl
conformance class is specified in the relevant folder as an 'extension' to the main capability. But their
semantics are exactly the same, so we put the shared openapi definition in this `fragments` directory.

| Fragment Name | Description |
| ------------------------------------------ | ------------ |
| [Context](context/README.md) | Adds search related metadata (context) to GeoJSON Responses. |
| [Fields](fields/README.md) | Adds parameter to control which fields are returned in the response. |
| [ItemCollection](itemcollection/README.md) | The specification for a set of items, e.g. returned by a search. |
| Fragment Name | Description |
| ------------------------------------------ | -------------------------------------------------------------------------- |
| [Context](context/README.md) | Adds search related metadata (context) to GeoJSON Responses. |
| [Fields](fields/README.md) | Adds parameter to control which fields are returned in the response. |
| [ItemCollection](itemcollection/README.md) | The specification for a set of items, e.g. returned by a search. |
| [Query](query/README.md) | Adds parameter to compare properties and only return the items that match. |
| [Sort](sort/README.md) | Adds Parameter to control sorting of returns results. |
| [Sort](sort/README.md) | Adds Parameter to control sorting of returns results. |
10 changes: 5 additions & 5 deletions fragments/itemcollection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ required fields is a valid STAC ItemCollection.

This object describes a STAC ItemCollection. The fields `type` and `features` are inherited from GeoJSON FeatureCollection.

| Field Name | Type | Description |
| --------------- | --------------------------------------- | ----------- |
| type | string | **REQUIRED.** Always "FeatureCollection" to provide compatibility with GeoJSON. |
| features | [STAC Item](../../stac-spec/item-spec/item-spec.md) | **REQUIRED** A possibly-empty array of Item objects. |
| links | [Link Object](../../stac-spec/item-spec/item-spec.md#link-object) | An array of Links related to this ItemCollection. |
| Field Name | Type | Description |
| ---------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| type | string | **REQUIRED.** Always "FeatureCollection" to provide compatibility with GeoJSON. |
| features | [STAC Item](../../stac-spec/item-spec/item-spec.md) | **REQUIRED** A possibly-empty array of Item objects. |
| links | [Link Object](../../stac-spec/item-spec/item-spec.md#link-object) | An array of Links related to this ItemCollection. |

## Extensions

Expand Down
Loading