Skip to content
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

fix: exclude unwrappable dictionaries for pydantic preset #1860

Merged

Conversation

jonaslagoni
Copy link
Sponsor Member

Description

This PR adds the exclusion tag for properties with type ConstrainedDictionaryModel with serialilzationType = unwrap to make sure they don't clutter up the serialized JSON.

Related Issue

Blocked by #1859 (this extends it)

Copy link

netlify bot commented Mar 5, 2024

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit 538d755
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/65e83c5d984b970008caf34b

@jonaslagoni
Copy link
Sponsor Member Author

@dimitern and another one! This does contain duplicate code of #1859 but will merge that one before this, just needed the refactoring code.

@dimitern
Copy link

dimitern commented Mar 5, 2024

Looks correct

kennethaasan
kennethaasan previously approved these changes Mar 5, 2024
@jonaslagoni jonaslagoni dismissed kennethaasan’s stale review March 6, 2024 09:50

The merge-base changed after approval.

Copy link

sonarcloud bot commented Mar 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@jonaslagoni
Copy link
Sponsor Member Author

Merging as nothing changed but merge commit. Thanks for the look @dimitern @kennethaasan 🙏

@jonaslagoni jonaslagoni merged commit e0e1741 into asyncapi:next Mar 6, 2024
15 checks passed
@jonaslagoni jonaslagoni deleted the exclude_unwrappable_dictionary_python branch March 6, 2024 10:54
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-next.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants