compose: azd add
does not force alpha schema annotation
#4572
Labels
Milestone
azd add
does not force alpha schema annotation
#4572
Output from
azd version
azd version 1.11.0 (commit 5b92e06)
Describe the bug
To Reproduce
azd config set alpha.compose on
git clone https://github.com/luabud/TheCatSaidNo.git
cd TheCatSaidNo
azd init
- select Use code in the current directory and then Confirm and continue initializing my appazure.yaml
in VS Code. Make sure the YAML extension is installed.Expected behavior
There shouldn't be a schema validation error flagged - it may be due to line 1 referencing the 1.0 YAML schema instead of the alpha one:
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
If you instead go through the
azd init
flow using the Create a minimal project flow, the generatedazure.yaml
uses the alpha schema:# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/alpha/azure.yaml.json
Environment
The text was updated successfully, but these errors were encountered: