-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http-client-java, support (non-nested) continuationToken for unbranded #6143
base: main
Are you sure you want to change the base?
http-client-java, support (non-nested) continuationToken for unbranded #6143
Conversation
❌ There is undocummented changes. Run The following packages have changes but are not documented.
Show changes |
You can try these changes here
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added inner class ContinuationToken
refactor here, to use either ModelPropertySegment
or List<ModelPropertySegment>
for the reference of property (instead of e.g. just String itemName
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impl code of generated SDK is mainly here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code under http-client-generator-test can be ignored. We didn't support continuationToken in branded, yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 28 out of 43 changed files in this pull request and generated no comments.
Files not reviewed (15)
- packages/http-client-java/generator/http-client-generator-clientcore-test/package.json: Language not supported
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/payload-pageable_apiview_properties.json: Language not supported
- packages/http-client-java/generator/http-client-generator-core/pom.xml: Language not supported
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/implementation/PageableClientImpl.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/ServerDrivenPaginationClient.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/extension/model/extensionmodel/XmsPageable.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/PageableClientBuilder.java: Evaluated as low risk
- packages/http-client-java/emitter/src/code-model-builder.ts: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/model/clientmodel/ClientMethod.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/mapper/ClientMethodMapper.java: Evaluated as low risk
- packages/http-client-java/emitter/src/common/client.ts: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/implementation/ServerDrivenPaginationsImpl.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/test/java/payload/pageable/PageableTests.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/serverdrivenpagination/continuationtoken/implementation/package-info.java: Evaluated as low risk
- packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/ServerDrivenPaginationContinuationTokenClient.java: Evaluated as low risk
Comments suppressed due to low confidence (2)
packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/implementation/RequestQueryResponseHeaderResponse.java:54
- The
toJson
method should callwriteEndObject
after writing the array field to properly close the JSON object.
return jsonWriter.writeEndObject();
packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/payload/pageable/implementation/RequestHeaderResponseHeaderResponse.java:55
- The toJson method should return the JsonWriter object after writing the end object. Update the method to return jsonWriter.writeEndObject().
return jsonWriter.writeEndObject();
.../main/java/payload/pageable/implementation/ServerDrivenPaginationContinuationTokensImpl.java
Show resolved
Hide resolved
...pec/http/client/generator/core/extension/model/extensionmodel/PageableContinuationToken.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty! Weidong..
link #5792
continuationToken
in nested (not top-level) property of response is currently not supported in core, hence this PR didn't include this special case.API (I've added a
body
to demonstrate the case that 2nd call would get all input from 1st -- query and header would already be absorbed inRequestOptions
)Impl
user code