Azure / enterprise-azure-policy-as-code

Enterprise-ready Azure Policy-as-Code (PaC) solution (includes Az DevOps pipeline)
https://azure.github.io/enterprise-azure-policy-as-code/
MIT License
415 stars 219 forks source link

Schema for global settings - VSCode says "Property `$schema` is not allowed" #733

Closed o-l-a-v closed 2 weeks ago

o-l-a-v commented 3 weeks ago

Describe the bug

Global settings schema:

Makes VSCode complain and say "Property $schema is not allowed".

Seems other projects have face the same, and fixed it by adding $schema as a valid property to the schema.

To Reproduce

Create global settings .jsonc file with "$schema": "https://raw.githubusercontent.com/Azure/enterprise-azure-policy-as-code/main/Schemas/global-settings-schema.json".

Expected behavior

VSCode should not complain about this property.

Screenshots

image

EPAC Version

Not relevant.