Skip to content

fix: add content example resolving for request bodies and parameters#2296

Open
jacobps1 wants to merge 1 commit intoswagger-api:masterfrom
capitalone-contributions:bug-2292-fix-content-example-resolving
Open

fix: add content example resolving for request bodies and parameters#2296
jacobps1 wants to merge 1 commit intoswagger-api:masterfrom
capitalone-contributions:bug-2292-fix-content-example-resolving

Conversation

@jacobps1
Copy link

@jacobps1 jacobps1 commented Mar 24, 2026

Description

  • Fixes content example resolving for request bodies and parameters.
  • Refactors duplicate content resolution logic (schema + examples) into a shared resolveContent() helper method.

Fixes: #2292

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

@jacobps1
Copy link
Author

Tagging @ewaostrowska and @daniel-kmiecik since I see you last contributed to this file. Let me know if there is someone else I should tag!

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.

[Bug]: content.examples $ref not resolved in request bodies or parameters

1 participant