Bruce Johnston

Results comments of Bruce Johnston

@SergeyKanzhelev To clarify, it is the ClientRuntime library that is shared by many Azure SDKs that looks at `AssemblyFileVersionAttribute`. The Azure Search library is but one of many libraries depending...

👍 @matthchr Client-side validation is a versioning problem waiting to happen.

@amarzavery Tying every single API change to a new API version is highly impractical. It is common practice to relax constraints without changing the API version. This is one of...

@amarzavery > If a service developer or spec author feels that the constraint is not contractual (i.e. it is not associated with the api-version) then he should not specify that...

@amarzavery > Having a switch to flip the bit on honoring client side validation is not going to help you much. Whenever the switch is flipped it is a breaking...

I have a proposed solution to this that we use in the Azure Search .NET SDK. We call it "extensible enums". We have several data types that are open-ended, but...

I know, and that is precisely the source of the versioning problem. How else could you solve it while still using an enum type?

`Unknown` is a lot less usable than getting a strongly-typed object that you can identify by looking at its underlying string value. That's why we implemented `ExtensibleEnum` in the first...

My take on `default` is similar to my take on client-side validation of Swagger constraints like `minimum`, `maximum`, etc.: The client should not be "smart". Assume the service knows what...

@pareshverma91 To clarify, do you mean that AutoRest would: 1. Duplicate the properties of bModel in both cModel and dModel, or 1. Generate derived classes cModel and dModel that both...