Skip to content

Commit

Permalink
Network Watcher: Suppressing a validation message (#2932)
Browse files Browse the repository at this point in the history
* Network Watcher: Suppressing a validation message

* Network watcher: Fixed property name in ConnectivityCheckRequest: HTTPConfiguration -> httpConfiguration

* Revert "Network watcher: Fixed property name in ConnectivityCheckRequest: HTTPConfiguration -> httpConfiguration"

This reverts commit 857a54b.

* Fixed message in warning supression
  • Loading branch information
irrogozh authored and anuchandy committed Apr 25, 2018
1 parent 2eb0271 commit ba4e148
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions specification/network/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,23 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
output-folder: $(go-sdk-folder)/services/network/mgmt/2018-02-01/network
```

## Suppression
``` yaml
directive:
- suppress: RequiredPropertiesMissingInResourceModel
from: networkwatcher.json
where: $.definitions.PacketCaptureResult
reason: Packet capture is a non tracked child resource. It has 'name' and 'id' but does not have a 'type'
- suppress: RequiredPropertiesMissingInResourceModel
from: networkwatcher.json
where: $.definitions.NetworkWatcher
reason: Network watcher has reference on resource in network.json which contain 'name, 'id' and 'type'
- suppress: DefinitionsPropertiesNamesCamelCase
from: networkwatcher.json
where: $.definitions.ProtocolConfiguration.properties.HTTPConfiguration
reason: Accidentally shipped with wrong casing – however fixing the casing is introducing a breaking change which is worse than living with the naming violation
```

### Tag: package-2018-01 and go

These settings apply only when `--tag=package-2018-01 --go` is specified on the command line.
Expand Down

0 comments on commit ba4e148

Please sign in to comment.