opengeospatial / ogcapi-features

An open standard for querying geospatial information on the web.
https://ogcapi.ogc.org/features
Other
341 stars 85 forks source link

OpenAPI media type #117

Open cportele opened 6 years ago

cportele commented 6 years ago

Previously it was planned by OAI to register application/openapi+json (which we use in the current draft), but OAI seems to have changed its mind. See the latest entries in https://github.com/OAI/OpenAPI-Specification/issues/110 which suggest:

As these media types are not registered with IANA yet, I think we should keep the current media type for now, but update it once it has been registered with IANA.

cmheazel commented 6 years ago

Ref: [https://github.com/OAI/OpenAPI-Specification/issues/110](OpenAPI Issue 110)

The MIME Types for OpenAPI have been finalized. application/vnd.oai.openapi (YAML variant) application/vnd.oai.openapi+json (JSON only variant)

With an optional version: application/vnd.oai.openapi;version=3.0

cportele commented 6 years ago

The media types have been agreed by the OAI TSC, but are not yet in the media type register of IANA. However, since they are in the vnd branch, it should not take long. I will create a pull request once the media types are in the IANA register.

cmheazel commented 6 years ago

It would be helpful if we included the media types that the TSC did agree to. The risk is that since they have not been registered, the TSC could change their minds.

cportele commented 5 years ago

It is unclear when or if OAI will register the media types. For now we will use latest ones agreed by the TSC and add a note about their status.

cportele commented 3 years ago

New activity wrt media types: https://www.ietf.org/archive/id/draft-polli-rest-api-mediatypes-00.html