Validate language-model mock output against the schema in OpenApiMockResponsePlugin
维护者通常 1 天内回复
@waldekmastykarz 已经在做这个了。
开始于 2026年10月31日。
评估
这个 Issue 还没有评估数据。
描述
OpenApiMockResponsePlugin (#2036) can generate mock bodies with a language model, but it checks only the top-level JSON type of the model's output. If the output breaks schema constraints (e.g. minimum, required, enum, pattern), it is still served as the mock.
Proposal: once OpenApiValidationPlugin (#2037) is merged, validate the model's output with its OpenApiSchemaValidator. If validation fails, fall back to the schema-based sample generator (and log why).
On hold until these are merged:
- #2036 (OpenApiMockResponsePlugin, closes #531)
- #2037 (OpenApiValidationPlugin, closes #779)
- 主要语言
- C#
- 星标
- 838
- 派生
- 90
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 59
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotnet/dev-proxy 的其他 Issue
-
GetTokenizedUrl fails on parenthesized Graph URL segments可能已有人在做 @waldekmastykarz 于 4 天前认领。 未关闭work in progress
dotnet/dev-proxy#2041 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Support discriminator for oneOf in OpenApiValidationPlugin可能已有人在做 @waldekmastykarz 于 4 天前认领。 未关闭work in progress
dotnet/dev-proxy#2040 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Support bring-your-own LLM (hosted OpenAI-compatible / Azure OpenAI) for language model integration可能已有人在做 @waldekmastykarz 于 4 天前认领。 未关闭work in progress
dotnet/dev-proxy#2034 · 已指派 1 人 ·
维护者通常 1 天内回复
-
OpenApiSpecGeneratorPlugin omits parameters and response headers from generated specs可能已有人在做 @waldekmastykarz 于 4 天前认领。 未关闭bug work in progress
dotnet/dev-proxy#2032 · 已指派 1 人 ·
维护者通常 1 天内回复
-
breaking change on hold
难度 3/5 1-2 天 新手友好度 65/100
dotnet/dev-proxy#1928 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 85/100
sebastienros/jint#4449 ·
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 63/100
spectreconsole/spectre.console#2242 ·
维护者通常 11 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
hardkoded/puppeteer-sharp#3659 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
KnifeLemon/Filee#1118 ·
维护者通常 1 天内回复