Skip to content

Commit 4076037

Browse files
committed
Updated JSON schema for configuration
1 parent 23867a2 commit 4076037

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

Diff for: internal/cli/configuration/configuration.schema.json

+21-10
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,8 @@
3838
},
3939
"ttl": {
4040
"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)",
41-
"oneOf": [
42-
{
43-
"type": "integer",
44-
"minimum": 0
45-
},
46-
{
47-
"type": "string",
48-
"pattern": "^\\+?([0-9]?\\.?[0-9]+(([nuµm]?s)|m|h))+$"
49-
}
50-
]
41+
"type": "string",
42+
"pattern": "^[+-]?(([0-9]+(\\.[0-9]*)?|(\\.[0-9]+))(ns|us|µs|μs|ms|s|m|h))+$"
5143
}
5244
},
5345
"type": "object"
@@ -146,6 +138,25 @@
146138
},
147139
"type": "object"
148140
},
141+
"network": {
142+
"description": "settings related to network connections.",
143+
"type": "object",
144+
"properties": {
145+
"proxy": {
146+
"description": "proxy settings for network connections.",
147+
"type": "string"
148+
},
149+
"user_agent_ext": {
150+
"description": "extra string to append to the user agent string in HTTP requests.",
151+
"type": "string"
152+
},
153+
"connection_timeout": {
154+
"description": "timeout for network connections, defaults to '30s'",
155+
"type": "string",
156+
"pattern": "^[+-]?(([0-9]+(\\.[0-9]*)?|(\\.[0-9]+))(ns|us|µs|μs|ms|s|m|h))+$"
157+
}
158+
}
159+
},
149160
"output": {
150161
"description": "settings related to text output.",
151162
"properties": {

0 commit comments

Comments
 (0)