Skip to content

Commit 8c00693

Browse files
committed
Kind in polymorphic type should be immutable
1 parent 6783913 commit 8c00693

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

azure/Guidelines.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,16 +551,9 @@ The [Azure Naming Guidelines](./ConsiderationsForServiceDesign.md#common-names)
551551
<a name="json-polymorphism-kind-extensible"></a>
552552
:ballot_box_with_check: **YOU SHOULD** define the discriminator field of a polymorphic type to be an extensible enum.
553553

554-
**WE SHOULD CHOOSE ONE OF THE FOLLOWING TWO OPTIONS**
555-
556554
<a name="json-polymorphism-kind-immutable"></a>
557555
:warning: **YOU SHOULD NOT** allow an update (patch) to change the discriminator field of a polymorphic type.
558556

559-
**OR**
560-
561-
<a name="json-polymorphism-mutable-kind"></a>
562-
:ballot_box_with_check: **YOU SHOULD** remove all properties specific to the old discriminator value from the resource when an update (patch) changes the discriminator field.
563-
564557
<a name="json-polymorphism-versioning"></a>
565558
:warning: **YOU SHOULD NOT** return properties of a polymorphic type that are not defined for the api-version specified in the request.
566559

0 commit comments

Comments
 (0)