Skip to content

v3.2.1 #60

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

Merged
merged 1 commit into from
Apr 22, 2025
Merged

v3.2.1 #60

merged 1 commit into from
Apr 22, 2025

Conversation

MBueschelberger
Copy link
Member

  • Add flat-flag to model_dump method of KItemCustomPropertiesModel

With this patch, a user can dump the custom properties to a flat dictionary by using the native model_dump-function of the pydantic model.

Example:


item.custom_properties.model_dump(flat=True)

Example Output:

{'Width': 0.5, 'Length': [0.1, 0.2]}

@MBueschelberger MBueschelberger added 📖 documentation Improvements or additions to documentation 📈 enhancement New feature or request labels Apr 14, 2025
Copy link
Member

@yoavnash yoavnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@MBueschelberger MBueschelberger merged commit 287ce1c into main Apr 22, 2025
10 checks passed
@MBueschelberger MBueschelberger deleted the dev/custom_properties_dump_flat branch April 22, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation 📈 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants