Skip to content

Conversation

@StarKhan6368
Copy link
Contributor

What: Fix fill-in-the-blanks for the object pattern with additional properties

Why: Due to a missing call to update additional properties, any extra keys in the payload were being treated as out of spec, even when additionalProperties were defined in the OpenAPI schema.

How:

  • Ensure that we update the pattern map before calling fill to account for additional properties.
  • Add test to ensure the behavior

Checklist:

  • Unit Tests
  • Build passing locally
  • Sonar Quality Gate
  • Security scans don't report any vulnerabilities
  • Documentation added/updated (share link)
  • Sample Project added/updated (share link)
  • Demo video (share link)
  • Article on Website (share link)
  • Roadmpap updated (share link)
  • Conference Talk (share link)

Issue ID:
Closes Issue: #1796

@ketan
Copy link
Contributor

ketan commented May 22, 2025

Resolve conflicts, and merge once done?

- Ensure that you update the pattern map before calling fill to
  account for additional properties.
- Add test to ensure the behavior
@joelrosario joelrosario merged commit 70c6407 into main May 30, 2025
1 check passed
@joelrosario joelrosario deleted the fix-fill-add-props branch May 30, 2025 11:26
@sonarqubecloud
Copy link

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.

4 participants