Skip to content

Commit

Permalink
chore(schema): correct properties of cache in segment
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis-yeung authored and JanDeDobbeleer committed Nov 5, 2024
1 parent 0a5e1f6 commit 2c982b2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions themes/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2c982b2

Please sign in to comment.