eslint-plugin-json-schema-validator
Version:
ESLint plugin that validates data using JSON Schema Validator.
1 lines • 3.37 kB
JSON
{"title":"JSON schema for the JSON Feed format","$schema":"http://json-schema.org/draft-04/schema#","type":"object","additionalProperties":false,"required":["items","title","version"],"definitions":{"item":{"required":["id"],"additionalProperties":false,"oneOf":[{"required":["content_html"],"not":{"required":["content_text"]}},{"required":["content_text"],"not":{"required":["content_html"]}},{"required":["content_text","content_html"]}],"patternProperties":{"^_[a-zA-Z]([^.]+)$":{"$ref":"https://json.schemastore.org/feed-1#/definitions/extension"}},"properties":{"attachments":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/attachments"},"author":{"deprecated":true,"allOf":[{"$ref":"https://json.schemastore.org/feed-1#/definitions/author"}]},"authors":{"type":"array","items":{"$ref":"https://json.schemastore.org/feed-1#/definitions/author"}},"banner_image":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/banner_image"},"content_html":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/content_html"},"content_text":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/content_text"},"date_modified":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/date_modified"},"date_published":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/date_published"},"external_url":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/external_url"},"id":{"type":["string"]},"image":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/image"},"language":{"type":"string"},"summary":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/summary"},"tags":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/tags"},"title":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/title"},"url":{"$ref":"https://json.schemastore.org/feed-1#/definitions/item/properties/url"}}}},"patternProperties":{"^_[a-zA-Z]([^.]+)$":{"$ref":"https://json.schemastore.org/feed-1#/definitions/extension"}},"properties":{"author":{"deprecated":true,"allOf":[{"$ref":"https://json.schemastore.org/feed-1#/definitions/author"}]},"authors":{"type":"array","items":{"$ref":"https://json.schemastore.org/feed-1#/definitions/author"}},"description":{"$ref":"https://json.schemastore.org/feed-1#/properties/description"},"expired":{"$ref":"https://json.schemastore.org/feed-1#/properties/expired"},"favicon":{"$ref":"https://json.schemastore.org/feed-1#/properties/description"},"feed_url":{"$ref":"https://json.schemastore.org/feed-1#/properties/feed_url"},"home_page_url":{"$ref":"https://json.schemastore.org/feed-1#/properties/home_page_url"},"hubs":{"$ref":"https://json.schemastore.org/feed-1#/properties/hubs"},"icon":{"$ref":"https://json.schemastore.org/feed-1#/properties/icon"},"items":{"type":"array","items":{"$ref":"#/definitions/item"}},"language":{"type":"string"},"next_url":{"$ref":"https://json.schemastore.org/feed-1#/properties/next_url"},"title":{"$ref":"https://json.schemastore.org/feed-1#/properties/title"},"user_comment":{"$ref":"https://json.schemastore.org/feed-1#/properties/user_comment"},"version":{"anyOf":[{"enum":["https://jsonfeed.org/version/1.1"]},{"$ref":"https://json.schemastore.org/feed-1#/definitions/uri"}]}}}