Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

JSON Schema path pattern

未關閉
#2,417 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
json
領域
api

研究方向

從 schemas/v3.0/schema.json 第 793 行開始,將路徑模式與 issue 中連結的 JSON Schema 正規表示式指南和 ECMAScript 規範進行比較。判斷經過跳脫的斜線是否有效,以及它為何存在;完成的標準是記錄其理由,或明確指出所需的 schema 修正。

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

描述

Schema

Can you explain why there is an escape character before / in json schema of openapi specification?

https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.json#L793

I tried to find a reason why it's there in https://json-schema.org/understanding-json-schema/reference/regular_expressions.html and https://www.ecma-international.org/publications/standards/Ecma-262.htm but i'm still not sure about it. I didn't find any explanation in specs.

IMO this regexp is invalid, it only works in most of libraries because javascript automatically fixes invalid usages of escape character.

主要語言
Markdown
星號
31.3k
分支
9.2k
平均合併
2 天 9 小時
30 天內合併 PR
17

環境準備

從這裡開始

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

OAI/OpenAPI-Specification 的其他 Issue

查看 OAI/OpenAPI-Specification 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

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

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