Skip to content

Commit

Permalink
fix(schema): update all to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture committed May 4, 2019
1 parent 0d0144c commit bccb840
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
9 changes: 5 additions & 4 deletions schema.json
@@ -1,15 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://ddns.newfuture.cc/schema.json",
"description": "DDNS 配置文件 https://github.com/NewFuture/DDNS",
"description": "[Deprecated] 已弃用,请使用 https://ddns.newfuture.cc/schema/v2.json",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"title": "please use https://ddns.newfuture.cc/schema/v2.json",
"description": "请更换为 https://ddns.newfuture.cc/schema/v2.json",
"enum": [
"http://ddns.newfuture.cc/schema.json",
"https://ddns.newfuture.cc/schema.json",
"./schema.json"
"https://ddns.newfuture.cc/schema/v2.json",
"http://ddns.newfuture.cc/schema/v2.json"
]
},
"id": {
Expand Down
14 changes: 7 additions & 7 deletions schema/v2.json
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://ddns.newfuture.cc/schema.json",
"$id": "https://ddns.newfuture.cc/schema/v2.json",
"description": "DDNS 配置文件 https://github.com/NewFuture/DDNS",
"type": "object",
"properties": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"$id": "/properties/dns",
"type": "string",
"title": "DNS Provider",
"description": "dns服务商:阿里为alidns,DNS.COM为dnscom,DNSPOD国际版为(dnspod_com),cloudflare",
"description": "dns服务商:阿里为alidns,DNS.COM为dnscom,DNSPOD国际版为dnspod_com,cloudflare",
"default": "dnspod",
"examples": [
"dnspod",
Expand Down Expand Up @@ -88,7 +88,7 @@
"boolean"
],
"title": "IPv4 address Setting",
"description": "本机 IPv4 获取方式设置",
"description": "本机 IPv4 获取方式:default默认请求IP,public公网,数字表示网卡,正则提取IPconfig",
"default": "default",
"examples": [
"default",
Expand All @@ -107,7 +107,7 @@
"boolean"
],
"title": "IPv6 address Setting",
"description": "本机 IPv6 获取方式设置",
"description": "本机 IPv6 获取方式:default默认请求IP,public公网,数字表示网卡,正则提取IPconfig",
"default": "default",
"examples": [
"default",
Expand All @@ -125,7 +125,7 @@
"null"
],
"title": "HTTP Proxy Setting",
"description": "DIRECT表示直连,多个代理分号(;)分割逐个尝试直到成功",
"description": "DIRECT表示直连,多个代理分号(;)分割,逐个尝试直到成功",
"pattern": "^[a-zA-Z0-9\\-;_:\\.]*$",
"examples": [
"127.0.0.1:1080;DIRECT"
Expand All @@ -146,7 +146,7 @@
"cache": {
"$id": "/properties/cache",
"type": "boolean",
"title": "Enable cache",
"title": "Enable Cache",
"description": "是否使用缓存",
"default": true,
"examples": [
Expand All @@ -160,4 +160,4 @@
"token"
],
"additionalProperties": false
}
}

0 comments on commit bccb840

Please sign in to comment.