microsoftgraph / msgraph-bicep-types

Repo contains Microsoft Graph resource types to integrate with bicep templates.
MIT License
45 stars 7 forks source link

Update the Graph type loader to emit a warning instead of an error for unrecognized properties #191

Open dkershaw10 opened 2 weeks ago

dkershaw10 commented 2 weeks ago

Is your feature request related to a problem? Please describe. Today the Bicep compiler/Graph type loader emits an error for unrecognized properties. This is undesirable behaviour. See solution for why this is undesirable.

Describe the solution you'd like Bicep compiler/Graph type loader should emits a warning for unrecognized properties. This approach is more desirable as:

  1. It would let users work with these properties while awaiting a new type package release.
  2. It's consistent with behaviour for Azure resources where warnings are emitted rather than errors for resource type issues.
  3. This would allow private preview hidden properties to pass through to Microsoft Graph, enabling Graph Bicep to be used for private preview scenarios (for existing resource types with private preview properties).

Additional context NA