Skip to content

Python: 11769 - Enabling support for additional extended headers support with application/json #12555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sshandilya1991
Copy link

Enhanced the OpenAPI plugin's media type validation by implementing regex pattern matching and improved Content-Type header handling for better flexibility and operation support - primarily resolving #11769

Key Changes

  • Replaced static list matching with flexible regex pattern matching which supports JSON variants (e.g., application/vnd.api+json) through pattern matching
  • Added is_supported_media_type() method with comprehensive validation logic
  • Prioritizes request body media type when available & falls back to first response media type for operations without request bodies

…mple for patch calls.

2. Changed the order how headers are built by giving preference to what is given in openapi spec responsebody.content
@sshandilya1991 sshandilya1991 requested a review from a team as a code owner June 20, 2025 17:57
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Jun 20, 2025
@github-actions github-actions bot changed the title 11769 - Enabling support for additional extended headers support with application/json Python: 11769 - Enabling support for additional extended headers support with application/json Jun 20, 2025
file was mistakenly added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants