'Cannot find preset schema for namespace' when using the API
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
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 の本文から書いたものです。
説明
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 ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
w3c/feedvalidator のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
w3c/feedvalidator#204 ·
-
bug
難易度 3/5 半日 初心者へのやさしさ 55/100
w3c/feedvalidator#198 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
w3c/feedvalidator#194 · コメント 1 件 ·
-
bug
難易度 3/5 半日 初心者へのやさしさ 45/100
w3c/feedvalidator#192 ·
-
難易度 3/5 半日 初心者へのやさしさ 35/100
w3c/feedvalidator#191 ·
w3c/feedvalidator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TigreGotico/orthography2ipa#2950 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Unstructured-IO/unstructured#4876 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openfoodfacts/openfoodfacts-python#579 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
fairagro/m4.2_sql_to_arc#388 ·
メンテナーはふだん 1 日以内に返信