json-schema-org / JSON-Schema-Test-Suite

A language agnostic test suite for the JSON Schema specifications
MIT License
625 stars 209 forks source link

fix subschema locations and their $refs #692

Closed karenetheridge closed 1 year ago

karenetheridge commented 1 year ago

I found this while adding checks for $refs to non-schema locations to my implementation.

karenetheridge commented 1 year ago

I don't understand. I see both subSchemas.json and subSchemas-defs.json still being used. The former is used by drafts 3-7, and the latter by 2019-09 and later. Both are needed, because one uses definitions and the other uses $defs.

jdesrosiers commented 1 year ago

@karenetheridge Sorry, I should have been more clear. There are multiple copies of these schemas, so it gets confusing which copies are being discussed.

Since /remotes/subSchemas-defs.json and /remotes/draft*/subSchemas.json are never used, they can be removed leaving us with ...

We can take the clean up one step further. Since there's no /remotes/draft*/subSchemas.json anymore, the -defs postfix is unnecessary and removing makes the naming consistent.

karenetheridge commented 1 year ago

ok. I'll open a new PR.