@@ -1077,10 +1077,10 @@ void QgsWfs3ConformanceHandler::handleRequest( const QgsServerApiContext &contex
10771077 { " conformsTo" ,
10781078 {
10791079 // From https://docs.ogc.org/is/19-072/19-072.html
1080- " http://www.opengis.net/spec/ogcapi-common-1/1.0/req/landing-page"
1080+ " http://www.opengis.net/spec/ogcapi-common-1/1.0/req/landing-page" ,
10811081 " http://www.opengis.net/spec/ogcapi-common-1/1.0/req/oas30" ,
10821082 " http://www.opengis.net/spec/ogcapi-common-1/1.0/req/html" ,
1083- " http://www.opengis.net/spec/ogcapi-common-1/1.0/req/json"
1083+ " http://www.opengis.net/spec/ogcapi-common-1/1.0/req/json" ,
10841084
10851085 // From https://docs.ogc.org/is/23-058r2/23-058r2.html
10861086 " http://www.opengis.net/spec/ogcapi-common-3/1.0/conf/schemas" ,
@@ -1306,12 +1306,15 @@ void QgsWfs3DescribeCollectionHandler::handleRequest( const QgsServerApiContext
13061306 }
13071307
13081308 // Add schemas
1309- linksList.push_back (
1310- { { " href" , href ( context, u" /schema" _s, QgsServerOgcApi::contentTypeToExtension ( QgsServerOgcApi::ContentType::HTML ) ) },
1311- { " rel" , QgsServerOgcApi::relToString ( QgsServerOgcApi::Rel::schema ) },
1312- { " type" , QgsServerOgcApi::mimeType ( QgsServerOgcApi::ContentType::HTML ) },
1313- { " title" , " Schema of features in '" + title + " '" } }
1314- );
1309+ for ( const auto ct : { QgsServerOgcApi::ContentType::SCHEMA_JSON , QgsServerOgcApi::ContentType::HTML } )
1310+ {
1311+ linksList.push_back (
1312+ { { " href" , href ( context, u" /schema" _s, QgsServerOgcApi::contentTypeToExtension ( ct ) ) },
1313+ { " rel" , QgsServerOgcApi::relToString ( QgsServerOgcApi::Rel::schema ) },
1314+ { " type" , QgsServerOgcApi::mimeType ( ct ) },
1315+ { " title" , " Schema of features in '" + title + " ' as " + QgsServerOgcApi::contentTypeToStdString ( ct ) } }
1316+ );
1317+ }
13151318
13161319
13171320#if 0
0 commit comments