Skip to content

Commit a6e5c18

Browse files
authored
add fields, restrict additional props (#1624)
1 parent ebc4215 commit a6e5c18

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.schema/devbox.schema.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description": "Defines fields and acceptable values of devbox.json",
66
"type": "object",
77
"properties": {
8+
"$schema": {
9+
"description": "The schema version of this devbox.json file.",
10+
"type": "string"
11+
},
812
"packages": {
913
"description": "Collection of packages to install",
1014
"oneOf": [
@@ -48,7 +52,13 @@
4852
},
4953
"env": {
5054
"description": "List of additional environment variables to be set in the Devbox environment. Values containing $PATH or $PWD will be expanded. No other variable expansion or command substitution will occur.",
51-
"type": "object"
55+
"type": "object",
56+
"patternProperties": {
57+
".*": {
58+
"type": "string",
59+
"description": "Value of the environment variable."
60+
}
61+
}
5262
},
5363
"shell": {
5464
"description": "Definitions of scripts and actions to take when in devbox shell.",
@@ -81,7 +91,20 @@
8191
}
8292
}
8393
}
94+
},
95+
"additionalProperties": false
96+
},
97+
"include": {
98+
"description": "List of additional plugins to activate within your devbox shell",
99+
"type": "array",
100+
"items": {
101+
"description": "Name of the plugin to activate.",
102+
"type": "string"
84103
}
104+
},
105+
"env_from": {
106+
"type": "string"
85107
}
86-
}
108+
},
109+
"additionalProperties": false
87110
}

0 commit comments

Comments
 (0)