Skip to content

add fields, restrict additional props #1624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .schema/devbox.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Defines fields and acceptable values of devbox.json",
"type": "object",
"properties": {
"$schema": {
"description": "The schema version of this devbox.json file.",
"type": "string"
},
"packages": {
"description": "Collection of packages to install",
"oneOf": [
Expand Down Expand Up @@ -48,7 +52,13 @@
},
"env": {
"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.",
"type": "object"
"type": "object",
"patternProperties": {
".*": {
"type": "string",
"description": "Value of the environment variable."
}
}
},
"shell": {
"description": "Definitions of scripts and actions to take when in devbox shell.",
Expand Down Expand Up @@ -81,7 +91,20 @@
}
}
}
},
"additionalProperties": false
},
"include": {
"description": "List of additional plugins to activate within your devbox shell",
"type": "array",
"items": {
"description": "Name of the plugin to activate.",
"type": "string"
}
},
"env_from": {
"type": "string"
}
}
},
"additionalProperties": false
}