autorest icon indicating copy to clipboard operation
autorest copied to clipboard

New rule: For a PUT operation, the response body of 200 should be an Azure Resource

Open veronicagg opened this issue 9 years ago • 5 comments

it's ubermost "allOf" must have x-ms-azure-resource:true.

veronicagg avatar Mar 10 '17 20:03 veronicagg

Need more information like ValidationCategory, Id

dsgouda avatar Apr 05 '17 00:04 dsgouda

@veronicagg I assume this rule will not apply to data plane APIs, correct?

bitsforthought avatar Apr 05 '17 00:04 bitsforthought

@brjohnstmsft correct, our linter rules are currently all about management plane (ARM), we are ignoring errors on swaggers that are not ARM for now, we'll introduce categories and applicability of rules a little later.

veronicagg avatar Apr 05 '17 17:04 veronicagg

@dsgouda I'd do RPC Violation for this one, please confirm with Gaurav. Id, please choose next number based on currently implemented ones, and add it to the checklist. thanks!

veronicagg avatar Apr 05 '17 17:04 veronicagg

Rule added

dsgouda avatar Apr 08 '17 00:04 dsgouda