Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sonicdoe/jsonfeed-schema
- Owner: sonicdoe
- License: isc
- Created: 2017-05-17T21:56:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T19:01:06.000Z (about 4 years ago)
- Last Synced: 2024-04-28T14:20:17.046Z (6 months ago)
- Topics: json-schema, jsonfeed
- Language: JavaScript
- Size: 223 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
```