Skip to content

Add proposal and update schema #571

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

scriptjs
Copy link

The following provides a clear proposal for the inclusion of the array and object types for Feature options. The updated schema validate JSON Schema 7 via https://www.jsonschemavalidator.net/ and was tested against the samples provided in the proposal.

@scriptjs scriptjs requested a review from a team as a code owner April 15, 2025 23:53
@scriptjs
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the proposal! Left a few questions.


## Proposed Solution

Extend the Dev Container Feature Options Schema by introducing `array` and `object` as valid types for feature options. These new types will enable developers to create more complex and customizable features.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What types of values would be supported? Maybe limiting it to strings and booleans would keep it simple and aligned with the existing types.


# Install dependencies
echo "Installing dependencies..."
for package in "${DEPENDENCIES[@]}"; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be Bash specific syntax. How would this work with the Bourne shell /bin/sh? The Bourne shell is used for the install scripts to allow for compatibility with distributions not including Bash by default like Alpine Linux.

Copy link

@Graysonbarton Graysonbarton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Grayson Barton [email protected]

Copy link

@Graysonbarton Graysonbarton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Grayson Barton [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants