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

[TASK] Validate guides.xml files against scheme #666

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

linawolf
Copy link
Contributor

@linawolf linawolf commented Nov 8, 2023

No description provided.

@linawolf linawolf marked this pull request as draft November 8, 2023 17:35
@@ -2,12 +2,13 @@
<xsd:schema
targetNamespace="https://www.phpdoc.org/guides"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="https://www.phpdoc.org/guides"
Copy link
Member

Choose a reason for hiding this comment

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

we should publish the xsd

Copy link
Contributor Author

Choose a reason for hiding this comment

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

First we should make it work?

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't publish the XSD on an uri (but instead reference a local file like done in the examples in this PR). You need proper version management when publishing the XSD's, something you get from free when you recommend people to use the XSD installed in their vendor directory.

(XML namespaces being a "uri" has no relation to the web)

And fix XML scheme so that our configurations can be validated
@linawolf linawolf marked this pull request as ready for review November 9, 2023 18:32
@linawolf
Copy link
Contributor Author

linawolf commented Nov 9, 2023

@jaapio all tests are green now, please review

@jaapio jaapio merged commit b237a0a into main Nov 10, 2023
24 checks passed
@jaapio jaapio deleted the task/validate-xml branch November 10, 2023 07:30
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.

3 participants