A lax Web news feed parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1.2 KiB

[
{
"description": "Not valid JSON 1",
"input": "{",
"exception": ["Syntax", "notJSON"]
},
{
"description": "Not valid JSON 2",
"input": "<rss><channel/></rss>",
"exception": ["Syntax", "notJSON"]
},
{
"description": "Not a JSON feed 1",
"input": {},
"exception": ["Semantics", "notAFeed"]
},
{
"description": "Not a JSON feed 2",
"input": {"version": "https://example.com/"},
"exception": ["Semantics", "notAFeed"]
},
{
"description": "Unknown version 1",
"input": {"version": "https://jsonfeed.org/version/"},
"exception": ["Semantics", "unknownVersion"]
},
{
"description": "Unknown version 2",
"input": {"version": "https://jsonfeed.org/version/2"},
"exception": ["Semantics", "unknownVersion"]
},
{
"description": "Unknown version 3",
"input": {"version": "https://jsonfeed.org/version/11"},
"exception": ["Semantics", "unknownVersion"]
},
{
"description": "Unknown version 4",
"input": {"version": "https://jsonfeed.org/version/1.1"},
"exception": ["Semantics", "unknownVersion"]
}
]