UNPKG

eslint-plugin-json-schema-validator

Version:
1 lines 2.02 kB
{"title":"JSON schema for vim plugin addon-info.json metadata files","$schema":"http://json-schema.org/draft-07/schema#","$id":"https://json.schemastore.org/vim-addon-info","type":"object","properties":{"name":{"type":"string","examples":["surround.vim","nerdtree","maktaba"]},"version":{"type":"string","examples":["0.0.1","2.0"],"default":"0.0.1"},"description":{"type":"string"},"homepage":{"type":"string","format":"uri"},"author":{"type":"string","examples":["Priya Exampleton","Example Industries"]},"maintainer":{"type":"string","examples":["Priya Exampleton"]},"repository":{"$ref":"#/definitions/selfRepository"},"dependencies":{"type":"object","additionalProperties":{"$ref":"#/definitions/otherRepository"}}},"definitions":{"url":{"type":"string","format":"uri","examples":["git://github.com/tpope/vim-surround"]},"repoType":{"enum":["hg","git","svn","bzr"]},"selfRepository":{"type":"object","properties":{"type":{"$ref":"#/definitions/repoType"},"url":{"$ref":"#/definitions/url"},"deprecated":{"type":"string"}},"dependencies":{"url":["type"],"type":["url"]}},"otherRepository":{"type":"object","anyOf":[{"$comment":"Empty repository info. Used to declare plugin with the given name is required without specifying any explicit details about how to fetch it (e.g., if name can be looked up in a predefined package index).","additionalProperties":false},{"$comment":"Repository with empty type and url pointing to local path.","properties":{"type":{"enum":["","archive"]},"url":{"$ref":"#/definitions/url"},"vim_script_nr":{"type":"number","examples":[31,1075]},"script-type":{"enum":["color scheme","ftplugin","game","indent","syntax","utility","patch"]}}},{"$comment":"Explicit remote repository.","properties":{"type":{"$ref":"#/definitions/repoType"},"url":{"$ref":"#/definitions/url"}},"required":["type","url"]}],"properties":{"homepage":{"type":"string","format":"uri"},"addon-info":{"$comment":"Addon information for the other plugin in case it does not supply its own addon-info file.","$ref":"#"}}}}}