Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export interface PropertyEditorSettingsProperty {
propertyEditorDataSourceAlias?: string;
config?: UmbPropertyEditorConfig;
weight?: number;
validation?: {
mandatory: boolean;
mandatoryMessage?: string | null;
};
Comment on lines +72 to +75
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

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

The validation property in PropertyEditorSettingsProperty has an incomplete type definition. It should extend UmbPropertyTypeValidationModel to include the optional regEx and regExMessage properties for consistency with the validation model used throughout the codebase.

Current definition:

validation?: {
    mandatory: boolean;
    mandatoryMessage?: string | null;
};

Should be:

validation?: {
    mandatory: boolean;
    mandatoryMessage?: string | null;
    regEx?: string | null;
    regExMessage?: string | null;
};

Or better yet, import and use the existing type:

validation?: UmbPropertyTypeValidationModel;

This ensures type compatibility when passing property.validation to the umb-property element which expects UmbPropertyTypeValidationModel.

Copilot uses AI. Check for mistakes.
}

// eslint-disable-next-line @typescript-eslint/naming-convention
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class UmbPropertyEditorConfigElement extends UmbLitElement {
alias=${property.alias}
property-editor-ui-alias=${property.propertyEditorUiAlias}
property-editor-data-source-alias=${ifDefined(property.propertyEditorDataSourceAlias)}
.config=${property.config}></umb-property>`,
.config=${property.config}
.validation=${property.validation}></umb-property>`,
)
: html`<umb-localize key="editdatatype_noConfiguration"
>There is no configuration for this property editor.</umb-localize
Expand Down
Loading