Closed weidongxu-microsoft closed 2 months ago
about required
nullable
code-model from above swagger
- schema: *ref_18
nullable: true
required: true
serializedName: epochDateTimeRequiredNullable
language:
default:
name: epochDateTimeRequiredNullable
description: ''
protocol: {}
code-model from tsp directly
- language:
default:
name: epochDateTimeRequiredNullable
description: ''
protocol: {}
schema: *ref_4
serializedName: epochDateTimeRequiredNullable
required: true
nullable: true
readOnly: false
so code-model part is consistent between tsp and swagger.
putting some comments in this commit: https://github.com/Azure/autorest.java/commit/c903675ade8a679995b7f87c17d033284ecfb755
Issue from openai-assistants on stream-style-serialization https://github.com/Azure/azure-sdk-for-java/issues/38725
code on
@encode
https://github.com/Azure/autorest.java/pull/2686/commits/4bc5ea4047139e16e8fa4e8347e8eac66cd6afb8change on test code https://github.com/Azure/autorest.java/pull/2686/commits/c903675ade8a679995b7f87c17d033284ecfb755 I've checked with Chenjie that TCGC should already handle it like this.
code on nullable required https://github.com/Azure/autorest.java/pull/2686/commits/b6b94e4976d58ca09023630d853780470a1a6947
change on test code https://github.com/Azure/autorest.java/pull/2686/commits/4fae1451e3f78489de7a6715185846b95d093ddc