Bruce Johnston
Bruce Johnston
I was looking at some generated code from the Search SDK, but I must have been looking in the wrong place because I see the links now. Sorry for the...
Agreed; This would be a useful feature. In another issue we've discussed adding the concept of an `ExtensibleEnum` to AutoRest: https://github.com/Azure/autorest/issues/1591 Here's an example of how we've used `ExtensibleEnum` in...
@matthchr In our case, we literally wanted a string like "OPTION_A | OPTION_B" in the JSON. I'm guessing that's what @JasonYang-MSFT wanted too.
> enum is supposed to literally enumerate all possible values that could go over the wire That interpretation is already violated by `modelAsString: true`.
@olydis That would be great, thanks!
@veronicagg I assume this rule will not apply to data plane APIs, correct?
@vishrutshah Who defines these suppressions? Can service teams define them?
This requirement is not valid for OData annotations. Here is the relevant part of the OData specification: http://docs.oasis-open.org/odata/odata-json-format/v4.0/errata03/os/odata-json-format-v4.0-errata03-os-complete.html#_Toc453766627
@dsgouda If you plan to run these rules on data plane specs, then please exclude all property names that start with `@`. Built-in annotations are covered by `@odata`, but services...