openapi-processor / openapi-processor/openapi-parser

openapi validation question

未關閉
#95 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Java
星號
27
分支
2
平均合併
3 天 16 小時
30 天內合併 PR
8

描述

hi i am trying to validate an openapi 3 file, json format,

using other tools i got
{"errors":[{"code":400,"message":"Malformed OAS3 document: attribute components.schemas.Schema name ResponsePayloadByte[] doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$"}

and also this stuff
https://quobix.com/vacuum/
return some validation error.

if i try using openapi-parser lib inside a java app, i don't get any validation error, the file is correctly parsed and it work fine.

am i missing anything? shouldn't it fail?

i am attaching file that give error

thanks

PFM_User_Dots.json

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用 openapi-parser 重現對所附 PFM_User_Dots.json 的驗證,並將其結果與其他已回報工具的結果進行比較。檢查 OpenAPI 3 的 schema 名稱限制,並判定 parser 是否應拒絕 ResponsePayloadByte[];完成的標準是解釋這項差異,或記錄一個已確認的驗證缺陷。

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

評估

技術堆疊
java, openapi
領域
api
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

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

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