json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

Extract vocabularies from the specs

Open gregsdennis opened this issue 1 year ago • 4 comments

Relates to https://github.com/orgs/json-schema-org/discussions/724 and https://github.com/json-schema-org/json-schema-spec/pull/1505.

Depends on #1518 Depends on #1512 (will likely need rebase after those merge)

The Core spec was a lot, but it was fairly straightforward.

This PR will make a best effort to include vocabularies as they are in 2020-12 as a start. Some redesign is inevitible, but this this is a good starting point.

gregsdennis avatar May 22 '24 09:05 gregsdennis

Yes, the word was present, but it was used very loosely. Later we added it with a very specific (and vaguely different) meaning but didn't address the existing usages. (See https://json-schema.org/draft-07/json-schema-validation.)

I figure it's better for now to just remove it completely. I don't think that the text suffers.

gregsdennis avatar May 22 '24 19:05 gregsdennis

I figure it's better for now to just remove it completely. I don't think that the text suffers.

That's fine with me. I didn't think the text suffered, I was just trying to make this a smaller job :smile:.

jdesrosiers avatar May 24 '24 14:05 jdesrosiers

Reminder (to me): open a new issue to discuss the future of the keyword and link all of the issues I've been linking ☝️

gregsdennis avatar Jun 18 '24 10:06 gregsdennis

I've rebased this on top of #1512. Starting to address comments now.

gregsdennis avatar Jun 21 '24 04:06 gregsdennis

@jdesrosiers would you please re-review this? I've made changes according to our conversations.

Also, would you be satisfied with the proposal doc in its current state as a starting point? I fully expect further issues and PRs to be created to edit the proposal.

gregsdennis avatar Aug 01 '24 22:08 gregsdennis

I feel like this is a change in the meaning of "meta-schema" and I'm not sure I'm comfortable with that.

Regarding this, I feel we've been misusing "meta-schema" by allowing it to refer to schemas that describe vocabs, and I want us to return to using it to refer to schemas that describes schemas.

It's not a change in definition; it's a return to correct usage.

But, I'm ok with merging this as is as an iteration.

Definitely, this PR is focused on getting vocabs out of the spec so that we can start iterating on the spec again. This is the last piece that we agreed to remove.

The proposal is definitely unfinished. The approach I took was to just make it as close to the 2020-12 behavior as I could. I recognize that it won't work with the next spec, but we need a starting point. The proposal will continue to evolve and will likely not look much like its current state when it's done. Maybe it'll just be wholesale replaced by something better.

gregsdennis avatar Aug 17 '24 00:08 gregsdennis