nasa / cmr-stac

Other
53 stars 21 forks source link

service-desc link type is different than href's response content-type header #204

Open philvarner opened 2 years ago

philvarner commented 2 years ago

Validating against [https://cmr.earthdata.nasa.gov/stac/USGS_EROS](https://cmr.earthdata.nasa.gov/stac/USGS_EROS), the service-desc link:

{'rel': 'service-desc', 'href': 'https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml', 'title': 'OpenAPI Doc', 'type': 'application/vnd.oai.openapi;version=3.0'}

advertises the type as 'application/vnd.oai.openapi;version=3.0', but the endpoint response (https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml) sets the content type header as 'text/yaml'

eudoroolivares2016 commented 3 weeks ago

I am still in the response seeing { "rel": "service-desc", "href": "https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml", "type": "application/vnd.oai.openapi;version=3.0", "title": "OpenAPI Doc" },

william-valencia commented 2 weeks ago

Should it be "application/vnd.oai.openapi+yaml;version=3.0" or "application/vnd.oai.openapi+yml;version=3.0" or something else?

william-valencia commented 2 weeks ago

https://bugs.earthdata.nasa.gov/browse/CMR-10208 created to track this request