Skip to content

Commit f7e5f86

Browse files
author
Luca Bianconi
committed
chore: refine schema
1 parent 8aa6453 commit f7e5f86

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: configuration/configuration.schema.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Arduino CLI configuration schema",
33
"description": "Describe the parameters available for the Arduino CLI configuration file. This schema should be considered unstable at this moment, it is not used by the CLI to validate input configuration",
4+
"$schema": "http://json-schema.org/draft-06/schema#",
45
"properties": {
56
"board_manager": {
67
"description": "",
@@ -26,9 +27,16 @@
2627
},
2728
"ttl": {
2829
"description": "cache expiration time of build folders. If the cache is hit by a compilation the corresponding build files lifetime is renewed. The value format must be a valid input for time.ParseDuration(), defaults to `720h` (30 days)",
29-
"type": "number",
30-
"format": "integer",
31-
"minimum": 0
30+
"oneOf": [
31+
{
32+
"type": "number",
33+
"format": "integer",
34+
"minimum": 0
35+
},
36+
{
37+
"type": "string"
38+
}
39+
]
3240
}
3341
},
3442
"type": "object"

0 commit comments

Comments
 (0)