Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "definitions": {},
- "$schema": "http://json-schema.org/draft-07/schema#",
- "type": "object",
- "title": "The Root Schema",
- "required": [
- "mod_id",
- "name",
- "version",
- "description",
- "authors",
- "objects"
- ],
- "properties": {
- "mod_id": {
- "$id": "#/properties/mod_id",
- "type": "string",
- "title": "Mod ID from ficsit.app",
- "default": "",
- "examples": [
- "F73LAobNZgQpgq"
- ],
- "pattern": "^([a-zA-Z0-9]*)$"
- },
- "name": {
- "$id": "#/properties/name",
- "type": "string",
- "title": "Mod Name",
- "default": "",
- "examples": [
- "BaseMod"
- ],
- "pattern": "^(.*)$"
- },
- "version": {
- "$id": "#/properties/version",
- "type": "string",
- "title": "Mod Version",
- "default": "",
- "examples": [
- "3.4.21"
- ],
- "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-]+)*))?$"
- },
- "description": {
- "$id": "#/properties/description",
- "type": "string",
- "title": "Mod Description",
- "default": "",
- "examples": [
- "A basic mod created to showcase SML's functionality."
- ],
- "pattern": "^(.*)$"
- },
- "authors": {
- "$id": "#/properties/authors",
- "type": "array",
- "title": "Mod Authors",
- "items": {
- "$id": "#/properties/authors/items",
- "type": "string",
- "title": "The Items Schema",
- "default": "",
- "examples": [
- "Nomnom",
- "SuperCoder79"
- ],
- "pattern": "^(.*)$"
- }
- },
- "objects": {
- "$id": "#/properties/objects",
- "type": "array",
- "title": "Objects within the ZIP",
- "items": {
- "$id": "#/properties/objects/items",
- "type": "object",
- "required": [
- "path",
- "type"
- ],
- "properties": {
- "path": {
- "$id": "#/properties/objects/items/properties/path",
- "type": "string",
- "title": "Path of object from root",
- "default": "",
- "examples": [
- "SDF.dll"
- ],
- "pattern": "^(.*)\\.(pak|dll)$"
- },
- "type": {
- "$id": "#/properties/objects/items/properties/type",
- "type": "string",
- "title": "Type of object",
- "default": "",
- "examples": [
- "sml_mod"
- ],
- "enum": [
- "core_mod",
- "sml_mod",
- "pak"
- ]
- }
- }
- }
- },
- "dependencies": {
- "$id": "#/properties/dependencies",
- "type": "object",
- "title": "Mod Dependencies",
- "propertyNames": {
- "pattern": "^([a-zA-Z0-9]*)$"
- },
- "additionalProperties": {
- "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-]+)*))?$"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement