Azure / Azure/openapi-diff

oad runtime exception caused by retry-after header with integer value

未關閉
#271 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
290
分支
50
平均合併
5 天 13 小時
30 天內合併 PR
5

描述

The [Breaking Change (Cross-Version) check in PR 21841](https://github.com/Azure/azure-rest-api-specs/pull/21841/checks?check_run_id=11184536197) fails with an oad runtime exception:

![image](https://user-images.githubusercontent.com/85643503/217629767-0b5df2b2-c8f7-4a5e-b244-0d184ffed2a8.png)

Through local experimentation I found that the runtime exception is caused by examples that contain a `retry-after` header in the response with an integer value.

The `retry-after` header is defined in the REST API as `type: integer, format: int32` so it makes sense to specify it in the example as an integer value.

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the Breaking Change (Cross-Version) check from PR 21841 with an example response containing an integer retry-after header. Trace the runtime exception in the openapi-diff tool and verify that the check completes successfully while preserving the integer header value.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp, openapi
領域
cli, tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。