oav icon indicating copy to clipboard operation
oav copied to clipboard

Flag a discriminator property that is defined as an extensible enum

Open mikekistler opened this issue 4 years ago • 1 comments

oav should issue an error message for a property that is defined as the discriminator for a schema when it is an extensible enum, I.e.x-ms-enum: { modelAsString: true }, because changing the set of values for a discriminator is a breaking change.

mikekistler avatar Jul 21 '21 14:07 mikekistler

Hi @mikekistler , sorry for the late response. Removing enum values is breaking change while adding new value is allowed in new api version. This validation is already covered on breaking change review.

raych1 avatar Sep 15 '21 08:09 raych1