From ff34b34bfa941f26778682ac00f4e7ecf0bcb1a3 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Thu, 5 Sep 2024 14:44:59 +0100 Subject: [PATCH] generator-go-sdk: update test fixtures --- .../generator/templater_models_discriminators_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/generator-go-sdk/internal/generator/templater_models_discriminators_test.go b/tools/generator-go-sdk/internal/generator/templater_models_discriminators_test.go index f9fb6f4baae..4daf25c2f9a 100644 --- a/tools/generator-go-sdk/internal/generator/templater_models_discriminators_test.go +++ b/tools/generator-go-sdk/internal/generator/templater_models_discriminators_test.go @@ -79,10 +79,16 @@ type ModeOfTransit interface { ModeOfTransit() BaseModeOfTransitImpl } +var _ ModeOfTransit = BaseModeOfTransitImpl{} + type BaseModeOfTransitImpl struct { Type string ''json:"type"'' } +func (s BaseModeOfTransitImpl) ModeOfTransit() BaseModeOfTransitImpl { + return s +} + var _ ModeOfTransit = RawModeOfTransitImpl{} // RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types