chore(schema): correct properties of cache in segment

This commit is contained in:
L. Yeung 2024-11-06 00:07:08 +08:00 committed by Jan De Dobbeleer
parent 0a5e1f6e8e
commit 2c982b2f0d

View file

@ -485,20 +485,18 @@
"cache": { "cache": {
"type": "object", "type": "object",
"title": "Cache settings", "title": "Cache settings",
"description": "https://ohmyposh.dev/docs/configuration/cache", "description": "https://ohmyposh.dev/docs/configuration/segment#cache",
"default": {}, "default": {},
"properties": { "properties": {
"duration": { "duration": {
"type": "string", "type": "string",
"title": "Cache duration", "title": "Cache duration",
"description": "https://ohmyposh.dev/docs/configuration/cache#duration", "pattern": "^(infinite)|([0-9])+(s|m|h)$"
"default": "^(infinite)|([0-9])+(second|seconds|minute|minutes|hour|hours|day|days|week|weeks|month|months)$",
"pattern": "^$"
}, },
"strategy": { "strategy": {
"type": "string", "type": "string",
"title": "Cache strategy", "title": "Cache strategy",
"description": "https://ohmyposh.dev/docs/configuration/cache#strategy", "description": "https://ohmyposh.dev/docs/configuration/segment#strategy",
"default": "folder", "default": "folder",
"enum": [ "enum": [
"folder", "folder",