Skip to content

Fix chat example/schema mismatches - #40

Merged
maximiliansoelch merged 1 commit into
mainfrom
33-fix-chat-example-mismatches
Sep 24, 2026
Merged

maximiliansoelch merged 1 commit into
mainfrom
33-fix-chat-example-mismatches

Conversation

@m-messer

Copy link
Copy Markdown
Contributor

Summary

  • Nest detailPreference/tonePreference/languagePreference under user.preference.{detail,tone,language} in chat and evaluate examples, matching the User schema.
  • Rename chat response example keys to match their request example keys (minimalChatResponse→minimalChat, etc.) so Redoc syncs the selector between request and response.
  • Add context.task as a typed property on ChatRequest, reusing the existing shared Task schema.

Test plan

  • npm run lint — passes with only the 8 pre-existing warnings (unrelated to this change, confirmed via git stash comparison)
  • npm run bundle — regenerated dist/openapi.yml, confirmed refs resolve and example keys pair correctly

Closes #33

@neagualexa neagualexa assigned m-messer and unassigned neagualexa Aug 21, 2026
@maximiliansoelch maximiliansoelch changed the title Fix chat example/schema mismatches (#33) Fix chat example/schema mismatches Sep 24, 2026
@maximiliansoelch
maximiliansoelch merged commit 93dbdf7 into main Sep 24, 2026
2 checks passed
@maximiliansoelch
maximiliansoelch deleted the 33-fix-chat-example-mismatches branch September 24, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues between OpenAPI documentations and the examples provided at /spec

3 participants