Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sonicdoe/jsonfeed-schema

JSON Schema for JSON Feed
https://github.com/sonicdoe/jsonfeed-schema

json-schema jsonfeed

Last synced: about 10 hours ago
JSON representation

JSON Schema for JSON Feed

Awesome Lists containing this project

README

        

# jsonfeed-schema [![Build status](https://img.shields.io/travis/sonicdoe/jsonfeed-schema/master.svg)](https://travis-ci.org/sonicdoe/jsonfeed-schema)

> [JSON Schema](http://json-schema.org) for [JSON Feed](https://jsonfeed.org)

The JSON Schema for [JSON Feed Version 1.1](https://jsonfeed.org/version/1.1) is in [`schema-v1.1.json`](./schema-v1.1.json). The schema for version 1 is in [`schema-v1.json`](./schema-v1.json).

It is also available on npm and RubyGems:

```
$ npm install jsonfeed-schema
```

```js
// 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
```

```ruby
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
```