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
437 stars 243 forks source link

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

Closed o-l-a-v closed 3 months ago

o-l-a-v commented 3 months 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.