Skip to content

Commit

Permalink
Add more conformance classes (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
jisantuc authored May 4, 2021
1 parent 0b9a475 commit 0cb5d28
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@ class LandingPageService[F[_]: Concurrent](apiConfig: ApiConfig)(
)
)

private val conformances: List[NonEmptyString] = List(
private val conformances: List[NonEmptyString] = List[NonEmptyString](
"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/core",
"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/oas30",
"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/geojson"
)
"http://www.opengis.net/spec/ogcapi-features-1/1.0/req/geojson",
"https://api.stacspec.org/v1.0.0-beta.1/core",
"https://api.stacspec.org/v1.0.0-beta.1/item-search",
"https://api.stacspec.org/v1.0.0-beta.1/item-search#context",
"https://api.stacspec.org/v1.0.0-beta.1/item-search#query"
) `combine` (if (apiConfig.enableTransactions)
List[NonEmptyString](
"https://api.stacspec.org/v1.0.0-beta.1/ogcapi-features/extensions/transaction"
)
else List.empty[NonEmptyString])

def conformancePage: F[Either[Unit, FranklinConformance]] = {
val conformance = FranklinConformance(conformances)
Expand Down

0 comments on commit 0cb5d28

Please sign in to comment.