mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
add yaml schema
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
This commit is contained in:
parent
e9e52995b6
commit
6a81c1f49f
|
@ -29,7 +29,53 @@ const monacoInitialization = (): void => {
|
|||
uri: 'http://example.com/meta-json-schema.json',
|
||||
fileMatch: ['**/*.clash.yaml'],
|
||||
// @ts-ignore // type JSONSchema7
|
||||
schema: metaSchema
|
||||
schema: {
|
||||
...metaSchema,
|
||||
patternProperties: {
|
||||
'\\+rules': {
|
||||
type: 'array',
|
||||
$ref: '#/definitions/rules',
|
||||
description: '“+”开头表示将内容插入到原数组前面'
|
||||
},
|
||||
'rules\\+': {
|
||||
type: 'array',
|
||||
$ref: '#/definitions/rules',
|
||||
description: '“+”结尾表示将内容追加到原数组后面'
|
||||
},
|
||||
'\\+proxies': {
|
||||
type: 'array',
|
||||
$ref: '#/definitions/proxies',
|
||||
description: '“+”开头表示将内容插入到原数组前面'
|
||||
},
|
||||
'proxies\\+': {
|
||||
type: 'array',
|
||||
$ref: '#/definitions/proxies',
|
||||
description: '“+”结尾表示将内容追加到原数组后面'
|
||||
},
|
||||
'\\+proxy-groups': {
|
||||
type: 'array',
|
||||
$ref: '#/definitions/proxy-groups',
|
||||
description: '“+”开头表示将内容插入到原数组前面'
|
||||
},
|
||||
'proxy-groups\\+': {
|
||||
type: 'array',
|
||||
$ref: '#/definitions/proxy-groups',
|
||||
description: '“+”结尾表示将内容追加到原数组后面'
|
||||
},
|
||||
'^\\+': {
|
||||
type: 'array',
|
||||
description: '“+”开头表示将内容插入到原数组前面'
|
||||
},
|
||||
'\\+$': {
|
||||
type: 'array',
|
||||
description: '“+”结尾表示将内容追加到原数组后面'
|
||||
},
|
||||
'!$': {
|
||||
type: 'object',
|
||||
description: '“!”结尾表示强制覆盖该项而不进行递归合并'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user