Skip to content

Python: Set a default value for non-nullable array fields#6655

Merged
baywet merged 2 commits intomicrosoft:mainfrom
rcleveng:b6350
Jun 12, 2025
Merged

Python: Set a default value for non-nullable array fields#6655
baywet merged 2 commits intomicrosoft:mainfrom
rcleveng:b6350

Conversation

@rcleveng
Copy link
Contributor

@rcleveng rcleveng commented Jun 12, 2025

Fixes #6350
closes #6489

  • Use the PythonRefiner to set the default value for non-nullable array types.
  • Update the CodePropertyWriter to respect the default value if set.
  • Add tests for the changes

Fixes microsoft#6350

* Use the PythonRefiner to set the default value for non-nullable
  array types.
* Update the CodePropertyWriter to respect the default value if set.
* Add tests for the changes
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

@baywet baywet enabled auto-merge June 12, 2025 18:59
@baywet baywet merged commit ca27ae3 into microsoft:main Jun 12, 2025
44 of 51 checks passed
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.

Array of item /w enum creates invalid dataclass in python

2 participants