Skip to content

Commit

Permalink
CMR-10208: Update mimetype for documentation endpoint with the correc…
Browse files Browse the repository at this point in the history
…t Iana spec
  • Loading branch information
eudoroolivares2016 committed Dec 5, 2024
1 parent 4af2de4 commit 1c36c91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/providerCatalog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
2 changes: 1 addition & 1 deletion src/routes/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/routes/rootCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1c36c91

Please sign in to comment.