Skip to content

Replace json.schemastore.org with www.schemastore.org - #866

Closed
palfrey wants to merge 1 commit into
tamasfe:masterfrom
palfrey:json-to-www
Closed

Replace json.schemastore.org with www.schemastore.org#866
palfrey wants to merge 1 commit into
tamasfe:masterfrom
palfrey:json-to-www

Conversation

@palfrey

@palfrey palfrey commented May 5, 2026

Copy link
Copy Markdown

I've just hit #799 again which I believe is related to SchemaStore/schemastore#5621.

 Running `target/debug/taplo lint --default-schema-catalogs`
 INFO taplo:load_config: found configuration file path="/home/palfrey/src/taplo/taplo.toml"
 WARN taplo: failed to fetch catalog error=error decoding response body: data did not match any variant of untagged enum SchemaCatalog

Caused by:
    data did not match any variant of untagged enum SchemaCatalog
ERROR operation failed error=failed to load schema catalog: error decoding response body: data did not match any variant of untagged enum SchemaCatalog: data did not match any variant of untagged enum SchemaCatalog

Advice from there was "Btw, everyone should use www. instead of json. subdomains for accessing anything on schemastore.org. If you have any hardcoded values pointing to json., then replace it now with www." which is what this PR does and it makes things work again

@palfrey

palfrey commented May 5, 2026

Copy link
Copy Markdown
Author

#828 does most of this as well

@AlexTMjugador

Copy link
Copy Markdown

The change proposed by this PR has been effectively applied as-is as of 08f343b.

@palfrey palfrey closed this Aug 7, 2026
@AlexTMjugador

Copy link
Copy Markdown

At the moment, taplo lint --schema-catalog https://www.schemastore.org/api/json/catalog.json Cargo.toml is still not working for me when linting a Rust project file with the following error:

 WARN taplo: failed to fetch catalog error=error decoding response body: data did not match any variant of untagged enum SchemaCatalog

Caused by:
    data did not match any variant of untagged enum SchemaCatalog
ERROR operation failed error=failed to load schema catalog: error decoding response body: data did not match any variant of untagged enum SchemaCatalog: data did n
ot match any variant of untagged enum SchemaCatalog

However, visiting https://www.schemastore.org/api/json/catalog.json in a web browser returns a valid-looking JSON response.

The older schema catalog suggested in #463 (comment) is no longer working for me either.

It seems likely that taplo needs further tweaks to handle a change in the schema catalog format.

AlexTMjugador added a commit to AlexTMjugador/dotfiles that referenced this pull request Aug 7, 2026
Taplo is not really working properly anymore, and Tombi is the best
maintained successor for it at the moment. See:
tamasfe/taplo#866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants