Error contains no link to Problem line in Swagger
- 主要語言
- C#
- 星號
- 290
- 分支
- 50
- 平均合併
- 5 天 13 小時
- 30 天內合併 PR
- 5
描述
Validation failure does not contain the problem line of code in the link. It opens the top of the file instead.
title: 'No potential breaking changes',
summary: 'Compared to the target branch (**main**), this pull request introduces:\n' +
'\n' +
' :white_check_mark: **0** new errors\n' +
'\n' +
' :white_check_mark: **0** new warnings\n' +
'\n',
text: '### The following files look to be newly added in this PR:\n' +
'* [specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2022-08-07/iotdps.json]([https://github.com/Azure/azure-rest-api-specs/blob/e57017bcbb5450d587bbbb316ea30ad71af706af/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2022-08-07/iotdps.json)\n'](https://github.com/Azure/azure-rest-api-specs/blob/e57017bcbb5450d587bbbb316ea30ad71af706af/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2022-08-07/iotdps.json)/n') +
'
\n' +
'**There were no files containing new errors or warnings.**\n' +
'\n' +
'
\n' +
'Thanks for using breaking change tool to review.\n' +
'If you encounter any issue(s), please open issue(s) at https://github.com/Azure/openapi-diff/issues.'
}
貢獻指南
研究方向
首先,使用 issue 中的 Swagger/OpenAPI 範例重現驗證失敗,並追蹤產生的連結是如何建立的。完成的標準是:連結開啟包含問題的原始碼行,而不是檔案頂端;沒有指定特定檔案或測試,因此請先檢查驗證和錯誤回報的進入點。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100