feat(http-client-java): support DurationKnownEncoding.milliseconds#9926
feat(http-client-java): support DurationKnownEncoding.milliseconds#9926weidongxu-microsoft merged 6 commits intomainfrom
Conversation
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
|
All changed packages have been documented.
Show changes
|
|
Please disable the test reported in https://dev.azure.com/azure-sdk/public/_build/results?buildId=5964964&view=logs&jobId=05bf61c7-7c78-55dc-7397-674208d00256&j=05bf61c7-7c78-55dc-7397-674208d00256&t=ca5cf95d-5e85-54b0-70fc-4a51fd77b80e I think the cause is e2e on the test part. We don't need to change test code. But we need to disable the test, before it get fixed. |
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Done in commit 7b5dbf9. The milliseconds test calls in both |
|
I mean, only disable the lines that reported in the log |
… 35625.0 instead of 35625 Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Done in commit d717b5d. Only |
|
You can try these changes here
|
milliseconds-integerandmilliseconds-numbertoDurationSchemaformat type intime.tsDURATION_KNOWN_ENCODINGandgetDurationFormatintype-utils.tsto handlemillisecondsencodingMILLISECONDS_INTEGERandMILLISECONDS_NUMBERtoDurationSchema.FormatenumDURATION_MILLISECONDS_LONGandDURATION_MILLISECONDS_DOUBLEtoClassTypeDURATION_MILLISECONDS_LONGandDURATION_MILLISECONDS_DOUBLEtoPrimitiveTypePrimitiveMapperto map new formats to new typesWireTypeClientTypeConverterwith milliseconds conversion logicClassType.getClientType()andPrimitiveType.getClientType()for new typesModelTestCaseUtilto handle new typesProxyMethodMapperandClientCoreProxyMethodMapperRETURN_VALUE_WIRE_TYPE_OPTIONSGenerate.ps1EncodeDurationTests.javato cover milliseconds scenarios; only disablefloatMilliseconds/float64Milliseconds/floatMillisecondsLargerUnitfor query/header (they produce35625.0instead of35625)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.