Skip to content

Commit

Permalink
Suppress invalid validation errors (#2713)
Browse files Browse the repository at this point in the history
* Suppress invalid validation errors

* Minor indentation issue
  • Loading branch information
vivsriaus authored and sarangan12 committed Mar 21, 2018
1 parent 9aa886a commit e759c73
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions specification/resources/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,43 @@ input-file:
- Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json
```

## Suppression
``` yaml
directive:
- suppress: UniqueResourcePaths
from: policySetDefinitions.json
where: $.paths
reason: policy set definition under an extension resource with Microsoft.Management
- suppress: UniqueResourcePaths
from: policyDefinitions.json
where: $.paths
reason: policy definition under an extension resource with Microsoft.Management
- suppress: BodyTopLevelProperties
from: resources.json
where: $.definitions.ResourceGroup.properties
reason: managedBy is a top level property
- suppress: BodyTopLevelProperties
from: resources.json
where: $.definitions.GenericResource.properties
reason: managedBy is a top level property
- suppress: BodyTopLevelProperties
from: managedapplications.json
where: $.definitions.Appliance.properties
reason: managedBy is a top level property
- suppress: BodyTopLevelProperties
from: managedapplications.json
where: $.definitions.ApplianceDefinition.properties
reason: managedBy is a top level property
- suppress: BodyTopLevelProperties
from: managedapplications.json
where: $.definitions.AppliancePatchable.properties
reason: managedBy is a top level property
- suppress: BodyTopLevelProperties
from: managedapplications.json
where: $.definitions.GenericResource.properties
reason: managedBy is a top level property
```

---
# Code Generation

Expand Down

0 comments on commit e759c73

Please sign in to comment.