Advertisement
Vilsol

data.json v2

Oct 21st, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.91 KB | None | 0 0
  1. {
  2.   "definitions": {},
  3.   "$schema": "http://json-schema.org/draft-07/schema#",
  4.   "type": "object",
  5.   "title": "The Root Schema",
  6.   "required": [
  7.     "mod_id",
  8.     "name",
  9.     "version",
  10.     "description",
  11.     "authors",
  12.     "objects"
  13.   ],
  14.   "properties": {
  15.     "mod_id": {
  16.       "$id": "#/properties/mod_id",
  17.       "type": "string",
  18.       "title": "Mod ID from ficsit.app",
  19.       "default": "",
  20.       "examples": [
  21.         "F73LAobNZgQpgq"
  22.       ],
  23.       "pattern": "^([a-zA-Z0-9]*)$"
  24.     },
  25.     "name": {
  26.       "$id": "#/properties/name",
  27.       "type": "string",
  28.       "title": "Mod Name",
  29.       "default": "",
  30.       "examples": [
  31.         "BaseMod"
  32.       ],
  33.       "pattern": "^(.*)$"
  34.     },
  35.     "version": {
  36.       "$id": "#/properties/version",
  37.       "type": "string",
  38.       "title": "Mod Version",
  39.       "default": "",
  40.       "examples": [
  41.         "3.4.21"
  42.       ],
  43.       "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
  44.     },
  45.     "description": {
  46.       "$id": "#/properties/description",
  47.       "type": "string",
  48.       "title": "Mod Description",
  49.       "default": "",
  50.       "examples": [
  51.         "A basic mod created to showcase SML's functionality."
  52.       ],
  53.       "pattern": "^(.*)$"
  54.     },
  55.     "authors": {
  56.       "$id": "#/properties/authors",
  57.       "type": "array",
  58.       "title": "Mod Authors",
  59.       "items": {
  60.         "$id": "#/properties/authors/items",
  61.         "type": "string",
  62.         "title": "The Items Schema",
  63.         "default": "",
  64.         "examples": [
  65.           "Nomnom",
  66.           "SuperCoder79"
  67.         ],
  68.         "pattern": "^(.*)$"
  69.       }
  70.     },
  71.     "objects": {
  72.       "$id": "#/properties/objects",
  73.       "type": "array",
  74.       "title": "Objects within the ZIP",
  75.       "items": {
  76.         "$id": "#/properties/objects/items",
  77.         "type": "object",
  78.         "required": [
  79.           "path",
  80.           "type"
  81.         ],
  82.         "properties": {
  83.           "path": {
  84.             "$id": "#/properties/objects/items/properties/path",
  85.             "type": "string",
  86.             "title": "Path of object from root",
  87.             "default": "",
  88.             "examples": [
  89.               "SDF.dll"
  90.             ],
  91.             "pattern": "^(.*)\\.(pak|dll)$"
  92.           },
  93.           "type": {
  94.             "$id": "#/properties/objects/items/properties/type",
  95.             "type": "string",
  96.             "title": "Type of object",
  97.             "default": "",
  98.             "examples": [
  99.               "sml_mod"
  100.             ],
  101.             "enum": [
  102.               "core_mod",
  103.               "sml_mod",
  104.               "pak"
  105.             ]
  106.           }
  107.         }
  108.       }
  109.     },
  110.     "dependencies": {
  111.       "$id": "#/properties/dependencies",
  112.       "type": "object",
  113.       "title": "Mod Dependencies",
  114.       "propertyNames": {
  115.         "pattern": "^([a-zA-Z0-9]*)$"
  116.       },
  117.       "additionalProperties": {
  118.         "pattern": "^(<=|<|>|>=|\\^)?(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
  119.       }
  120.     }
  121.   }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement