From 4539c243935b76e8d19e4c4638a1240f2442a607 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Tue, 21 Nov 2023 10:53:19 -0800 Subject: [PATCH] Changelog --- .../fix-union-variant-to-union_2023-11-21-18-53.json | 10 ++++++++++ .../fix-union-variant-to-union_2023-11-21-18-53.json | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 common/changes/@typespec/compiler/fix-union-variant-to-union_2023-11-21-18-53.json create mode 100644 common/changes/@typespec/openapi3/fix-union-variant-to-union_2023-11-21-18-53.json diff --git a/common/changes/@typespec/compiler/fix-union-variant-to-union_2023-11-21-18-53.json b/common/changes/@typespec/compiler/fix-union-variant-to-union_2023-11-21-18-53.json new file mode 100644 index 0000000000..a4fea0caca --- /dev/null +++ b/common/changes/@typespec/compiler/fix-union-variant-to-union_2023-11-21-18-53.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/compiler", + "comment": "Fix: Union variant are now assignable to the parent union", + "type": "none" + } + ], + "packageName": "@typespec/compiler" +} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/fix-union-variant-to-union_2023-11-21-18-53.json b/common/changes/@typespec/openapi3/fix-union-variant-to-union_2023-11-21-18-53.json new file mode 100644 index 0000000000..58b32fe1f4 --- /dev/null +++ b/common/changes/@typespec/openapi3/fix-union-variant-to-union_2023-11-21-18-53.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/openapi3", + "comment": "Handle: union variants as discriminator", + "type": "none" + } + ], + "packageName": "@typespec/openapi3" +} \ No newline at end of file