Skip to content

Commit 9d53bb1

Browse files
authored
add features-filter conformance class (#840)
1 parent dd7496f commit 9d53bb1

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/lib/api.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -974,26 +974,27 @@ const getConformance = async function (txnEnabled) {
974974
`${foundationPrefix}/collections`,
975975
`${foundationPrefix}/ogcapi-features`,
976976
`${foundationPrefix}/item-search`,
977-
'https://api.stacspec.org/v1.0.0/ogcapi-features#fields',
978-
'https://api.stacspec.org/v1.0.0/ogcapi-features#sort',
979-
'https://api.stacspec.org/v1.0.0/ogcapi-features#query',
980-
'https://api.stacspec.org/v1.0.0/item-search#fields',
981-
'https://api.stacspec.org/v1.0.0/item-search#sort',
982-
'https://api.stacspec.org/v1.0.0/item-search#query',
983-
'https://api.stacspec.org/v1.0.0/item-search#filter',
977+
`${foundationPrefix}/ogcapi-features#fields`,
978+
`${foundationPrefix}/ogcapi-features#sort`,
979+
`${foundationPrefix}/ogcapi-features#query`,
980+
`${foundationPrefix}/item-search#fields`,
981+
`${foundationPrefix}/item-search#sort`,
982+
`${foundationPrefix}/item-search#query`,
983+
`${foundationPrefix}/item-search#filter`,
984984
'https://api.stacspec.org/v0.3.0/aggregation',
985985
'https://api.stacspec.org/v0.3.0/aggregation#query',
986986
'https://api.stacspec.org/v0.3.0/aggregation#filter',
987987
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core',
988988
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30',
989989
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson',
990990
'http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/filter',
991+
'http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/features-filter',
991992
'http://www.opengis.net/spec/cql2/1.0/conf/basic-cql2',
992-
'http://www.opengis.net/spec/cql2/1.0/conf/cql2-json'
993+
'http://www.opengis.net/spec/cql2/1.0/conf/cql2-json',
993994
]
994995

995996
if (txnEnabled) {
996-
conformsTo.push('https://api.stacspec.org/v1.0.0-rc.3/ogcapi-features/extensions/transaction')
997+
conformsTo.push(`${foundationPrefix}-rc.3/ogcapi-features/extensions/transaction`)
997998
}
998999

9991000
return { conformsTo }

tests/system/test-api-get-conformance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test.after.always(async (t) => {
1313

1414
test('GET /conformance returns the expected conformsTo list', async (t) => {
1515
const response = await t.context.api.client.get('conformance')
16-
t.is(response.conformsTo.length, 21)
16+
t.is(response.conformsTo.length, 22)
1717
})
1818

1919
test('GET /conformance has a content type of "application/json', async (t) => {

0 commit comments

Comments
 (0)