Properties panel: Mandatory fields and defaults

Hi everyone,

I would like to be able to set fields in the properties panel as required, and also set a default for those fields. I can’t find a way to do this, so my questions are:

a) Is there a built-in way to set a default for property panel fields?

b) Is there a built-in way to mark fields as required?

c) If the answer to either a) or b) is no: Is there a recommended way to do this or perchance an example that I overlooked?

This is a missing feature for the properties panel entries. Feel free to open issues inside the GitHub repository if you think default + required attributes make sense, also giving some context why you need these properties.

Why I’m asking about the why: the properties panel implementations always display what the underlying XML reveals. As an example, default values that are not inside the XML might be confusing.