@stemy/ngx-dynamic-form 19.9.4 → 19.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1179,7 +1179,10 @@ class DynamicFormSchemaService {
1179
1179
  priority: property.priority,
1180
1180
  componentType: property.componentType,
1181
1181
  wrappers: wrappers.filter(ObjectUtils.isStringWithValue),
1182
- props: property,
1182
+ props: {
1183
+ ...property,
1184
+ required: false
1185
+ },
1183
1186
  validators
1184
1187
  };
1185
1188
  }
@@ -1411,6 +1414,9 @@ class DynamicFormSchemaService {
1411
1414
  addPropertyValidators(validators, property) {
1412
1415
  if (!property)
1413
1416
  return;
1417
+ if (Boolean(property.required)) {
1418
+ validators.required = requiredValidation();
1419
+ }
1414
1420
  if (!isNaN(property.minLength)) {
1415
1421
  validators.minLength = minLengthValidation(property.minLength);
1416
1422
  }