Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
This change makes minor fixes and improvements to the decomposed schemas.
Changes include:
Fixing the data-type conditionals for configuration parameters so that the
min*
/max*
keywords only apply to the correct data types.Adding type validation for default and allowed values based on the defined data type for the parameter.
Adding VS Code keywords to improve the DevX when authoring configurations and resource manifests:
markdownDescription
ensures that descriptive text can render as Markdown. Where possible, these descriptions also include a link to the relevant online documentation to help authors get more information as needed.markdownEnumDescriptions
keyword enables adding per-enum-value documentation that shows on hover and with auto-complete.patternErrorMessage
shows a useful error message instead of just informing the user that a string did not match a regular expression.defaultSnippets
enables simpler auto-complete for values, allowing an author to pick from a list of snippets that work like normal VS Code snippets.Ensuring that the processed schemas only include the VS Code keywords for the bundled VS Code schemas.
Adding schema associations so
*.dsc.resource.json
files are associated with the bundled VS Code schema for resource manifests and.dsc[.config].yaml
files are associated with the bundled VS Code schema for configuration documents.PR Context
Together, these changes make the schemas more accurate and improve the authoring DevX for DSCv3.