Skip to content

http://json-schema.org/schema 404 #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6nv opened this issue Oct 9, 2023 · 9 comments
Closed

http://json-schema.org/schema 404 #118

6nv opened this issue Oct 9, 2023 · 9 comments

Comments

@6nv
Copy link

6nv commented Oct 9, 2023

Hi all,

I've been getting a 404 not found error code from http://json-schema.org/schema in VS Code and in multiple different browsers, and on different networks. Additionally, VS code no longer provides intellisense when I use that schema URL.

Screenshot 2023-10-09 at 11 54 40 AM

Sample code to reproduce:

{
    "$schema": "http://json-schema.org/schema"
}
@gregsdennis
Copy link
Member

Hey @6nv.

There are a couple problems here.

First, we are only serving HTTPS from the website now.

Second, meta-schemas should be packaged with the editor/implementation rather than downloaded as needed. That's an issue with the editor. We expected this.

There have been other reports of implementations doing this, and our response is the same. You're welcome to follow the conversation in Slack as well.

I'll open an issue with VSCode.

@gregsdennis
Copy link
Member

@6nv you might try http://json-schema.org/draft-07/schema#. This would be a better option than that URI.

@benjagm
Copy link
Collaborator

benjagm commented Oct 9, 2023

Hi everyone! I just deployed a new rule on cloudflare to create that redirect for https://json-schema.org/schema.
This was a missing redirection rule in the migration process. @6nv Could you please try again and let us know?

@jdesrosiers
Copy link
Member

Keep in mind that the use of http://json-schema.org/schema# is deprecated and should not be used. Consider this outage a dress rehearsal for when we stop serving it altogether 😉.

In Draft 4, a $schema value of http://json-schema.org/schema# referred to the latest version of JSON Schema. This usage has since been deprecated and the use of specific version URIs is required. - https://json-schema.org/understanding-json-schema/basics#declaring-a-json-schema

we are only serving HTTPS from the website now.

I just want to clarify that the website does respond to http: requests, it will just give a 301 redirect to the https: address. As long as the client (vscode in this case) handles HTTP redirects the way it should, you shouldn't notice any difference.

@6nv
Copy link
Author

6nv commented Oct 9, 2023

FYI, issue created with VS Code here: microsoft/vscode#195189

@gregsdennis
Copy link
Member

That VSCode issue has been closed via PR.

@6nv are you happy closing this?

@6nv
Copy link
Author

6nv commented Oct 11, 2023

It would be nice-to-have to access the latest schema using /schema but it appears that it's not recommended to do that. If that's still the case, I think this issue can be closed.

@benjagm benjagm added the 💬 Question Further information is requested label Nov 22, 2023
@benjagm
Copy link
Collaborator

benjagm commented Nov 23, 2023

As per the Open Community Working Meeting of 2023-10-30 this is going to be deprecated in the future.
json-schema-org/community#505

@benjagm
Copy link
Collaborator

benjagm commented Feb 20, 2024

Closed as completed.

@benjagm benjagm closed this as completed Feb 20, 2024
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

No branches or pull requests

4 participants