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

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

fix subschema locations and their $refs #692

Closed karenetheridge closed 11 months ago

karenetheridge commented 11 months ago

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

karenetheridge commented 11 months 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 11 months 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 11 months ago

ok. I'll open a new PR.