From ca7e02ecb1710355355f189d126f898c10a0658b Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 7 Aug 2024 11:26:18 +0800 Subject: [PATCH] fix --- typespec-extension/src/code-model-builder.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typespec-extension/src/code-model-builder.ts b/typespec-extension/src/code-model-builder.ts index 3f009aa24e..3485b525a8 100644 --- a/typespec-extension/src/code-model-builder.ts +++ b/typespec-extension/src/code-model-builder.ts @@ -2111,6 +2111,8 @@ export class CodeModelBuilder { } else { schema = this.processSchemaFromSdkType(nonNullType, ""); } + } else { + schema = this.processSchemaFromSdkType(nonNullType, ""); } return new Property(prop.name, prop.details ?? "", schema, {