Skip to content
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

Make JSON schema allow WebGL extension spec URLs #10353

Conversation

sideshowbarker
Copy link
Contributor

@sideshowbarker sideshowbarker commented May 7, 2021

We’re at the point where we need to add spec URLs for 61 WebGL features from https://www.khronos.org/registry/webgl/extensions/ WebGL extension specs.

But all https://www.khronos.org/registry/webgl/extensions/ specs lack any ID/anchors at all, and therefore don’t conform to the JSON schema requirement in the compat-data.schema.json file for spec_url values to have a fragment identifier. So this change updates the schema to allow any URLs matching the following pattern:

^https://www.khronos.org/registry/webgl/extensions/[^/]+/

Otherwise, without this change, CI fails on all those URLs, because doesn’t find the required fragment IDs in them.

#10358 is the related data change.

We have 61 features with https://www.khronos.org/registry/webgl/extensions/
spec URLs. All https://www.khronos.org/registry/webgl/extensions/ specs
lack any ID/anchors at all, and therefore don’t conform to the JSON
schema requirement in the compat-data.schema.json file for spec_url
values to have a fragment identifier. So this change updates the schema
to allow any URLs matching the following pattern:

^https://www.khronos.org/registry/webgl/extensions/[^/]+/

Otherwise, without this change, our CI fails on all those URLs, because
it expects to find the required fragment identifier in each of them.
@sideshowbarker sideshowbarker requested a review from ddbeck as a code owner May 7, 2021 06:33
@github-actions github-actions bot added the schema Isses or pull requests regarding the JSON schema files used in this project. label May 7, 2021
@sideshowbarker sideshowbarker requested a review from Elchi3 May 7, 2021 06:33
@Elchi3
Copy link
Member

Elchi3 commented May 7, 2021

Looks good to me. I opened mdn/yari#3746 just to be sure rendering will never break (The {{Specifications}} macro isn't even used on these pages yet, but let's wait until the yari PR is merged just to be extra safe).

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yari PR merged.
I will talk to Daniel about this change, but looks good to me.

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in the diff look fine to me, but the corresponding text in compat-data-schema.md needs updating, too.

@github-actions github-actions bot added the docs Issues or pull requests regarding the documentation of this project. label May 11, 2021
@sideshowbarker
Copy link
Contributor Author

The changes in the diff look fine to me, but the corresponding text in compat-data-schema.md needs updating, too.

OK, thanks — added now

@sideshowbarker sideshowbarker requested a review from ddbeck May 11, 2021 02:48
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🎉

@ddbeck ddbeck merged commit b181c07 into mdn:main May 11, 2021
@sideshowbarker sideshowbarker deleted the sideshowbarker/compat-data.schema.json-allow-WebGL-extension-spec-URLs branch May 11, 2021 11:19
ddbeck added a commit to ddbeck/browser-compat-data that referenced this pull request May 20, 2021
ddbeck added a commit that referenced this pull request May 20, 2021
* Bump version to v3.3.4
* Add release note for #10353
* Add release note for #10347
* Add release note for #10336
* Add release note for #10415
* Add release note for #10417
* Add release note for #10449
* Add release note for #9933
* Add release note for #10354
* Add release notes for #6944
* Add release note for #10522
* Add release note for #10536
* Add release note for #10539
* Add release note for #10515
* Add release note for #10506
* Add release note for #10291
* Add release note for #10421
* Add release note for #10545
* Add stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Issues or pull requests regarding the documentation of this project. schema Isses or pull requests regarding the JSON schema files used in this project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants