-
-
Notifications
You must be signed in to change notification settings - Fork 313
Add "$ref" for subschemas. #188
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense
Anyone seeking an explanation to this should see #168 (comment) |
@awwright review requested! =] |
It looks like as of PR #167 there's no longer separate behavior for subschemas. Unless there's something I'm missing... can you point out the language that proscribes this behavior? |
PR #186 was the first commit from #168 Which is why they were stacked in #168 in the first place- they make a logical sequence and they could not be merged separately without conflicts. That wasn't for my own amusement. There is nothing here that you haven't seen before. |
@awwright My understanding is that you're missing #168 (comment) |
@handrews I'm not sure what you're responding to... I'm just trying to figure out which language it is that makes referring to @Relequestual As far as I can tell, that only describes why $ref is mutually exclusive. |
@awwright See #174. I had previously not had "#/definitions/subSchema", but you made me change it because "$ref" is not allowed as a root schema. Therefore there is a difference between a root schema and a subschema. Therefore we need to define subschema somewhere because most previously references to "#" need the subschema definition. |
@handrews iirc that was just a patch I had up for a few hours, I can't actually find that language in the current documents. Can you point it out please? |
@awwright you asked for this change, are you telling me you don't even know why you did? There was no "patch" for #174, you just told me to change this. Anyway, the wording is in the obvious place, which is section 7 where "$ref" is defined:
|
@handrews You're seeing that in jsonschema-core, section 7? That's strange... the current "master" branch for me shows this:
Can you double-check? Or else I've just got to be going crazy, or maybe GitHub is being buggy again. |
@awwright I was looking on the last draft by accident, but really, I did this because you wanted it. Apparently you don't want it anymore. Is that correct? I don't even care what language says what, I'm just trying to appease you at this point and get the changes in. I've re-done this commit four or five times now and you have a different change you want every time. What will make you happy here? If I change it so that at the top level a schema can be a boolean, a regular object, or a $ref, will you accept that? |
@handrews Ok, glad that's been figured out. I asked for the separate PR in the hopes it would be helpful for stuff like this. If it's apparent to you that this isn't necessary anymore, then you can just close out the issue. Again, sorry about the confusion! I'd swear GitHub really has been acting funny lately. |
This had nothing to do with a separate PR. I walked you through this change in #186. At that point, it did not involve "subSchema". You objected to allowing "$ref" in a root schema (on IRC, so of course no one else saw it nor can I refer to it) and made me change the commit (which I did) and file #174. And then you refused to look at the changes that I made at your request and closed the PR on me. I have done so much work at your request on this whole series of changes, and you just keep moving the goal every single time.
Where do you even get this? Also, this is a yes-or-no question that I asked which you completely ignored:
Something is still needed here. The only thing that's clear to me is that no matter where I put this commit or how I arrange it, you are not happy with it. But you won't answer what will make you happy. |
@handrews I don't recall my opinions on "$ref" being so strong. I didn't intend it to be an editorial objection. The things I preface with "In my opinion" or "I think" are just my personal opinions, they are subject to change in the face of a compelling argument to the contrary -- and frequently do. I'm terribly sorry if that's made things confusing recently.
I'm merely saying if. If you don't think this patch is necessary anymore, please close it out. If you think it is, please let me know which language warrants its inclusion.
This, like most things, is subject to opening an issue/PR and convincing people that it's necessary to do. I don't have a personal opinion myself right now. If you think you have a solution to a problem, by all means, open an issue/PR and let's see it! Thanks for #194! |
This is the same approach used in the PR for Draft 05 meta-schemas in the web site repo.
I'm closing this in favour of #194, which I think is easier to understand at first glance than this solution. |
This is the same approach used in the PR for Draft 05 meta-schemas
in the web site repo.