@yuuvis/client-core 3.3.0 → 3.4.0

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.
@@ -2033,10 +2033,16 @@ class SystemService {
2033
2033
  .map((sot) => sot.value)
2034
2034
  .forEach((sotID) => objectTypesQA[sotID].propertyReference.forEach((propertyRef) => objectTypeFieldIDs.push(propertyRef.value)));
2035
2035
  }
2036
- let fields = objectTypeFieldIDs.map((id) => ({
2037
- ...propertiesQA[id],
2038
- _internalType: this.getInternalFormElementType(propertiesQA[id].propertyType, propertiesQA[id].classifications)
2039
- }));
2036
+ let fields = objectTypeFieldIDs.map((id) => {
2037
+ const propDef = propertiesQA[id];
2038
+ const propRef = schemaTypeDefinition.propertyReference.find((propertyRef) => propertyRef.value === id);
2039
+ const required = propRef?.required ?? propDef.required;
2040
+ return {
2041
+ ...propDef,
2042
+ required,
2043
+ _internalType: this.getInternalFormElementType(propertiesQA[id].propertyType, propertiesQA[id].classifications)
2044
+ };
2045
+ });
2040
2046
  // also resolve properties of the base type
2041
2047
  if (schemaTypeDefinition.baseId !== schemaTypeDefinition.id && !!objectTypesQA[schemaTypeDefinition.baseId]) {
2042
2048
  fields = fields.concat(this.#resolveObjectTypeFields(objectTypesQA[schemaTypeDefinition.baseId], propertiesQA, objectTypesQA));