diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ea63def..bd14c539 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/core/commons.yaml b/core/commons.yaml index 0dab0bc1..e640aec8 100644 --- a/core/commons.yaml +++ b/core/commons.yaml @@ -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: diff --git a/core/openapi.yaml b/core/openapi.yaml index b94cad17..d340eee7 100644 --- a/core/openapi.yaml +++ b/core/openapi.yaml @@ -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 diff --git a/ogcapi-features/openapi.yaml b/ogcapi-features/openapi.yaml index a4c90bdc..eae7ac3d 100644 --- a/ogcapi-features/openapi.yaml +++ b/ogcapi-features/openapi.yaml @@ -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' @@ -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'