You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
config validate command needs to check for duplicate resource names in configuration document #842
In order to avoid errors at runtime, the dsc config validate should detect and provide appropriate error response when a resource name is duplicated in a configuration document.
The validate sub-command is used by dsc itself to validate the input matches the JSONSchema. I can see how validate would be useful to users directly. I think what we should do is add a --schema-only to maintain the current behavior and update the group resource manifests to use this and add additional validation like duplicate resource names to this sub-command eventually having more static analysis capabilities.
Activity
SteveL-MSFT commentedon May 28, 2025
The
validatesub-command is used bydscitself to validate the input matches the JSONSchema. I can see howvalidatewould be useful to users directly. I think what we should do is add a--schema-onlyto maintain the current behavior and update the group resource manifests to use this and add additional validation like duplicate resource names to this sub-command eventually having more static analysis capabilities.