Editing mpdev
yaml files can be error-prone. IDEs such as VSCode and Intellij
offer YAML auto-complete using JSON Schema files.
- Install the YAML extension for VSCode. https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
- Follow the instructions to associate YAML files with a JSON schema
here.
Your
settings.json
file should be similar to the following:yaml.schemas: { "https://raw.githubusercontent.com/GoogleCloudPlatform/marketplace-tools/master/jsonschema/mpdev.jsonschema": [ "*/*.yaml" ] }
Follow the instructions here to add a custom JSON schema.
The URL of the mpdev
JSON schema is
https://raw.githubusercontent.com/GoogleCloudPlatform/marketplace-tools/master/jsonschema/mpdev.jsonschema