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

'Cannot find preset schema for namespace' when using the API #103

Open
Mcdostone opened this issue May 8, 2023 · 0 comments
Open

'Cannot find preset schema for namespace' when using the API #103

Mcdostone opened this issue May 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Mcdostone
Copy link

Hi,

I'm trying validate my RSS file using curl but for some reasons, it doesn't work (I am able to validate HTML, CSS though).
I didn't find any piece of documentation regarding the the w3c validation API.
When I validate the RSS manually using https://validator.w3.org/feed/check.cgi, it works like a charm.

Is there something wrong with my curl command?

Error message
Cannot find preset schema for namespace: “http://www.w3.org/2005/Atom”

Command

curl --request POST \
  --url 'https://validator.w3.org/nu/?out=json' \
  --header 'Content-Type: application/xml' \
  --data '<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
</feed>'

# output
{"messages":[{"type":"non-document-error","subType":"schema","message":"Cannot find preset schema for namespace: “http://www.w3.org/2005/Atom”."}]}
@Mcdostone Mcdostone added the bug Something isn't working label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant