diff --git a/src/__tests__/providerCatalog.spec.ts b/src/__tests__/providerCatalog.spec.ts index 0da746b7..5d6bec33 100644 --- a/src/__tests__/providerCatalog.spec.ts +++ b/src/__tests__/providerCatalog.spec.ts @@ -109,7 +109,7 @@ describe("GET /:provider", () => { const link: Link = catalog.links.find((l: Link) => l.rel === "service-desc"); expect(link).to.have.property("rel", "service-desc"); - expect(link).to.have.property("type", "text/yaml"); + expect(link).to.have.property("type", "application/vnd.oai.workflows+yaml"); expect(link).to.have.property("href", "https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml"); expect(link).to.have.property("title", "OpenAPI Doc"); }); diff --git a/src/routes/catalog.ts b/src/routes/catalog.ts index 8e0e9d2a..fa4bae82 100644 --- a/src/routes/catalog.ts +++ b/src/routes/catalog.ts @@ -51,7 +51,7 @@ const generateSelfLinks = (req: Request, nextCursor?: string | null, count?: num { rel: "service-desc", href: "https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml", - type: "text/yaml", + type: "application/vnd.oai.workflows+yaml", title: "OpenAPI Doc", }, { diff --git a/src/routes/rootCatalog.ts b/src/routes/rootCatalog.ts index 26a8ce6f..37353bf8 100644 --- a/src/routes/rootCatalog.ts +++ b/src/routes/rootCatalog.ts @@ -27,7 +27,7 @@ const selfLinks = (req: Request): Link[] => { rel: "service-desc", href: `https://api.stacspec.org/v1.0.0-beta.1/openapi.yaml`, title: "OpenAPI Documentation", - type: "text/yaml", + type: "application/vnd.oai.workflows+yaml", }, { rel: "service-doc",