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