cloudflare / chanfana

OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!
https://chanfana.pages.dev
MIT License
263 stars 35 forks source link

Implement Content Negotiation to Support Multiple Response Formats #127

Open jdahlborg opened 4 months ago

jdahlborg commented 4 months ago

To accommodate diverse client preferences, I propose introducing content negotiation. This feature allows clients to request their preferred content format (e.g., JSON, XML, HTML) via the Accept header, enabling the API to automatically adapt and serve the optimal media type.

akshayawasthi2445 commented 4 months ago

May i look into this?