Skip to content

sonicdoe/jsonfeed-schema

Repository files navigation

jsonfeed-schema Build status

JSON Schema for JSON Feed

The JSON Schema for JSON Feed Version 1.1 is in schema-v1.1.json. The schema for version 1 is in schema-v1.json.

It is also available on npm and RubyGems:

$ npm install jsonfeed-schema
// Load the latest version:
const jsonfeedSchema = require('jsonfeed-schema')
// {
//   '$schema': 'http://json-schema.org/draft-07/schema#',
//   title: 'JSON Feed',
//   description: 'JSON Feed Version 1.1',
//   …
// }

// Load a specific version:
const jsonFeedSchemaV1 = require('jsonfeed-schema/v1')
const jsonFeedSchemaV1_1 = require('jsonfeed-schema/v1.1')
$ gem install jsonfeed-schema
require 'jsonfeed/schema'

# Load the latest version:
JSONFeed::SCHEMA
# {
#   "$schema"=>"http://json-schema.org/draft-07/schema#",
#   "title"=>"JSON Feed",
#   "description"=>"JSON Feed Version 1.1",
#   …
# }

# Load a specific version:
JSONFeed::SCHEMA_V1
JSONFeed::SCHEMA_V1_1