Skip to content

Commit

Permalink
Merge pull request #82 from radiantearth/conformances
Browse files Browse the repository at this point in the history
Add conformance classes to landing page #74
  • Loading branch information
cholmes authored Dec 7, 2020
2 parents d8bd349 + d25e1c8 commit dd44bcf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased][]

### Added
- The landing page returns the conformance classes in a property `conformsTo`, which mirrors `GET /conformances` from OGC APIs.

### Changed
- Updated to STAC specification version 1.0.0-beta.2
Expand Down
14 changes: 14 additions & 0 deletions core/commons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ components:
type: string
description:
type: string
conformanceClasses:
type: object
required:
- conformsTo
properties:
conformsTo:
description: >-
A list of all conformance classes implemented by the server.
In addition to the STAC-specific conformance classes, all OGC-related
conformance classes listed at `GET /conformances` must be listed here.
This entry should mirror what `GET /conformances` returns, if implemented.
type: array
items:
type: string
catalog:
type: object
required:
Expand Down
4 changes: 3 additions & 1 deletion core/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ components:
content:
application/json:
schema:
$ref: 'commons.yaml#/components/schemas/catalog'
allOf:
- $ref: 'commons.yaml#/components/schemas/catalog'
- $ref: 'commons.yaml#/components/schemas/conformanceClasses'
example:
stac_version: 1.0.0-beta.1
id: sentinel
Expand Down
11 changes: 1 addition & 10 deletions ogcapi-features/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,6 @@ components:
type: array
items:
$ref: '../core/commons.yaml#/components/schemas/collection'
confClasses:
type: object
required:
- conformsTo
properties:
conformsTo:
type: array
items:
type: string
featureCollectionGeoJSON:
allOf:
- $ref: '../core/commons.yaml#/components/schemas/featureCollectionGeoJSON'
Expand Down Expand Up @@ -340,7 +331,7 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/confClasses'
$ref: '../core/commons.yaml#/components/schemas/conformanceClasses'
example:
conformsTo:
- 'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core'
Expand Down

0 comments on commit dd44bcf

Please sign in to comment.