Skip to content

Commit

Permalink
rustup update, schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlan404 committed Nov 18, 2023
1 parent be16d86 commit 3bcadfa
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 98 deletions.
31 changes: 31 additions & 0 deletions hotreload.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "hotreload.toml",
"description": "mcman hotreload.toml schema",
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": { "type": "string" },
"action": {
"oneOf": [
{
"const": "reload"
},
{
"const": "restart"
},
{
"type": "string",
"pattern": "/.*"
}
]
}
}
}
}
}
}
38 changes: 38 additions & 0 deletions network.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "network.toml schema",
"description": "Schema for mcman's network.toml file",
"type": "object",
"properties": {
"name": {
"description": "Name of the network",
"type": "string"
},
"proxy": {
"description": "The proxy server's name",
"type": "string"
},
"port": {
"type": "integer",
"default": 25565
},
"servers": {
"description": "Table of servers",
"type": "object",
"additionalProperties": {
"port": {
"type": "integer",
"default": 25565
},
"ip_address": {
"description": "Optional server ip address",
"type": "string"
}
}
},
"variables": {
"description": "Variables shared between all servers",
"type": "object"
}
}
}
Loading

0 comments on commit 3bcadfa

Please sign in to comment.