Add domain validation#5640
Conversation
a6db8a0 to
5862062
Compare
|
this is a great idea, but the issue is that the current |
|
Conceptually, I understand that the What are some potential drawbacks of changing the |
|
@ya7010 Previous changes have resulted in breaking changes for popular clients like Taplo. See tamasfe/taplo#799 for details. Even for us testing the schemas internally, changing the |
|
@ya7010 Wondering, are you sure that all of these changes are needed to fix issues from #5621, #5108, and #5106? We discourage directly accessing the |
|
I was not aware of that issue. Looking at the implementation of Taplo, it seems that the $schema in catalog.json needs to remain as json.schemastore.org. We need to address this with a whitelist that allows json.schemastore.org. fbc3d63#diff-1b8f038f5afb1158263a1fc83b9c0ca5a7438cceb90adad99d87168f70edc815R2 |
The problem is that On the other hand, with the exception of the catalog, various URLs are already mixed for
The issue with the current fix is that it creates a new schema by copying many existing deprecated samples, which carries a constant risk of network errors occurring. |
Related: #5621
Prohibit the use of the
json.schemastore.orgdomain and recommend the use ofwww.schemastore.orginstead.To pass CI for this PR, we need to merge #5626 first.