Skip to content

Instantly share code, notes, and snippets.

@pauricthelodger
Created April 28, 2013 19:33
Show Gist options
  • Save pauricthelodger/5478101 to your computer and use it in GitHub Desktop.
Save pauricthelodger/5478101 to your computer and use it in GitHub Desktop.
"feeds": [
{
"url": "http://cam.example.com",
"type": "image/jpeg",
"name": "cam"
},
{
"url": "http://cam.example.com",
"type": "video/ogg",
"name": "stream"
},
{
"url": "http://example.com/feed/",
"type": "application/rss+xml",
"name": "blog"
},
{
"url": "https://www.google.com/calendar/ical/example.ics",
"type": "text/calendar",
"name": "calendar"
}
@slopjong
Copy link

Let me think about this, I'm not sure if this should be really implemented. Both the clients and the validator/directory need to iterate over the array to find a specific element (when using the filters).

On the other side, it makes it easier to write a validator plugin to validate all the feed mimetypes of the http responses with only few lines of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment