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

オープン
#103 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
bash, json, python, xml
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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”."}]}
主要言語
Python
スター
135
フォーク
67
平均マージ
2日 51分
マージ済み PR(30日)
4

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

w3c/feedvalidator のほかの issue

w3c/feedvalidator の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。