Closed weidongxu-microsoft closed 7 months ago
code https://github.com/Azure/autorest.java/pull/2604/commits/1effd8475463df3f0c4a69d152950175491e0741
last few commit handles the deprecation in 0.54
fix https://github.com/Azure/autorest.java/issues/2586 fix https://github.com/Azure/autorest.java/issues/2595
tested with main.tsp from https://github.com/Azure/cadl-ranch/pull/526 (in local, as that PR is not merged) looks good
exceptions: - language: default: name: validResponseResponse description: Client error protocol: http: statusCodes: - '400' - '401' - '402' - '403' - '404' - '405' - '406' - '407' - '408' - '409' - '410' - '411' - '412' - '413' - '414' - '415' - '416' - '417' - '418' - '419' - '420' - '421' - '422' - '423' - '424' - '425' - '426' - '427' - '428' - '429' - '430' - '431' - '432' - '433' - '434' - '435' - '436' - '437' - '438' - '439' - '440' - '441' - '442' - '443' - '444' - '445' - '446' - '447' - '448' - '449' - '450' - '451' - '452' - '453' - '454' - '455' - '456' - '457' - '458' - '459' - '460' - '461' - '462' - '463' - '464' - '465' - '466' - '467' - '468' - '469' - '470' - '471' - '472' - '473' - '474' - '475' - '476' - '477' - '478' - '479' - '480' - '481' - '482' - '483' - '484' - '485' - '486' - '487' - '488' - '489' - '490' - '491' - '492' - '493' - '494' - '495' - '496' - '497' - '498' - '499' headers: [] mediaTypes: - application/json schema: *ref_2
But then Java would always change to the Exception classes in java azure-core (it could be a question on generic though).
code https://github.com/Azure/autorest.java/pull/2604/commits/1effd8475463df3f0c4a69d152950175491e0741
last few commit handles the deprecation in 0.54
fix https://github.com/Azure/autorest.java/issues/2586 fix https://github.com/Azure/autorest.java/issues/2595
tested with main.tsp from https://github.com/Azure/cadl-ranch/pull/526 (in local, as that PR is not merged) looks good
But then Java would always change to the Exception classes in java azure-core (it could be a question on generic though).