Skip to content

Fix 988 - Inconsistencies with schema uri and empty fragment URIs #997

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

Merged
merged 2 commits into from
Sep 26, 2020
Merged

Conversation

about-code
Copy link
Contributor

Fixes #988 and other inconsistencies regarding empty fragments.

@Relequestual regarding the issue and empty fragments you wrote

The spec says "MUST NOT have an empty fragment".

The exact wording of the spec with respect to $id (not $schema) currently is

"$id" MUST NOT contain a non-empty fragment, and SHOULD NOT contain an empty fragment.

I guess you referred to this part of the spec since I could not find any other mentioning of empty fragments. I read this as

  • http://example.com/my-schema-id#non-empty must not be used
  • http://example.com/my-schema-id# should not be used

I am only writing this because this PR picks up on your original comment and also removes some empty fragments which I assume are very likely unintended while not being totally against the spec itself, though.

@about-code about-code changed the title Fix inconsistencies with schema uri and empty fragment URIs Fix 988 - Inconsistencies with schema uri and empty fragment URIs Sep 26, 2020
@Relequestual
Copy link
Member

Ah right, yes, that's correct. We left it as SHOULD to keep backwards compat rather than nit picking in this instance, iirc.

@Relequestual Relequestual added this to the draft-08-patch1 milestone Sep 26, 2020
@Relequestual
Copy link
Member

Thank you Andreas for your contribution! Every little helps!

@Relequestual Relequestual merged commit f10a9e3 into json-schema-org:master Sep 26, 2020
@about-code
Copy link
Contributor Author

You're welcome. I very much appreciate the hard work and time you and your collaborators dedicate to this project and

Every little helps!

was exactly what I thought would be a good way to show my gratitude. :-)

@Relequestual
Copy link
Member

My first PR was for jQuery docs! =]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What is the $schema tag for the new 2019-09 draft?
2 participants