Incorrect content type headers on hosted schemas

Open
#4,858 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale

Research direction

Start by locating the hosting configuration for www.schemastore.org and inspect the final response for a hosted schema, rather than the initial redirect from json.schemastore.org. Confirm the current Content-Type behavior, then verify that hosted schemas return application/schema+json or application/json without changing the redirect response.

Written by the indexing model from the issue text.

Description

Build Server
Area with issue?

Web server

✔️ Expected Behavior

Hosted schemas have a Content-Type: application/schema+json (or at least application/json) header.

❌ Actual Behavior

Hosted schemas have a Content-Type: application/octet-stream header.

Fetching json.schemastore.org schemas first redirects to www.schemastore.org (the 301 response has an HTML content type, which is fine, it's just a redirect), but then fetching the schema from www.schemastore.org returns an octet stream content type.

This causes problems for tools that validate the content type, e.g. we had tooling that switched from processing remote schema references as nested schemas to processing the remote references as straight inline text. This started happening some time in May/early-June 2025.

We started relying on local copies of the schemas as a workaround.

JSON, YAML, or TOML file that does not work.

No response

IDE or code editor.

None

Are you making a PR for this?

No, someone else must create the PR.

Dominant language
JavaScript
Stars
3.9k
Forks
2.4k
Avg merge
12h 34m
Merged PRs (30d)
134

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SchemaStore/schemastore

All issues in SchemaStore/schemastore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.