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

Abierto
#103 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
bash, json, python, xml
Área
api

Línea de trabajo

Start by reproducing the POST request against https://validator.w3.org/nu/?out=json with the Atom XML payload shown in the issue. Compare that behavior with https://validator.w3.org/feed/check.cgi, then trace how the API endpoint selects and resolves a preset schema for the http://www.w3.org/2005/Atom namespace. Done means the request no longer returns the preset-schema error and the API provides a useful response or explanation for Atom feeds.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

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”."}]}
Lenguaje dominante
Python
Estrellas
135
Forks
67
Merge medio
2 d 51 min
PR fusionados (30 d)
4

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de w3c/feedvalidator

Todos los issues de w3c/feedvalidator

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.