opengeospatial / ogcapi-records

An open standard for the discovery of geospatial resources on the Web.
https://ogcapi.ogc.org/records
Other
58 stars 27 forks source link

itemType #375

Closed cportele closed 1 month ago

cportele commented 1 month ago

Requirement /req/record-collection/itemType states:

If a catalog references both records and other catalogs then, its itemType property SHALL be an array of strings whose elements enumerate the types of resources referenced by this catalog (i.e. record and catalog).

This will break clients implementing Features, because the value of the "itemType" member is a string, not an array of strings. If a client receives an array, this will likely result in errors, because the value is unexpected.

pvretano commented 1 month ago

08-JUN-2024: Need to fix this https://docs.ogc.org/DRAFTS/20-004.html#record-collection ... in the records API case this should only be a bare features collection without the extensions for the crawlable catalog case.

pvretano commented 1 month ago

Updated the requirement /req/records-api/record-collection-response in the records API requirements class to make it clear that in the records API case (which uses Features) that itemType is a string and its values is fixed to record. This also required some schema changes here and there to enforce this.