@gravitee/ui-particles-angular 17.5.0 → 17.6.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.
@@ -3204,27 +3204,19 @@ class GioFormlyJsonSchemaService {
3204
3204
  result = { ...resolved, ...rest };
3205
3205
  }
3206
3206
  }
3207
- // Recurse into properties
3208
- if (result.properties) {
3209
- const newProps = {};
3210
- for (const [key, value] of Object.entries(result.properties)) {
3211
- newProps[key] = this.walkSchema(value, root);
3212
- }
3213
- result = { ...result, properties: newProps };
3214
- }
3215
- // Recurse into items
3216
- if (result.items) {
3217
- if (isArray(result.items)) {
3218
- result = { ...result, items: result.items.map(item => this.walkSchema(item, root)) };
3219
- }
3220
- else if (isObject(result.items)) {
3221
- result = { ...result, items: this.walkSchema(result.items, root) };
3207
+ // Recurse into all nested objects and arrays to cover properties, items,
3208
+ // allOf/oneOf/anyOf, definitions, gioExternalDefinitions, dependencies, etc.
3209
+ for (const [key, value] of Object.entries(result)) {
3210
+ if (key === 'gioConfig')
3211
+ continue;
3212
+ if (isArray(value)) {
3213
+ result = {
3214
+ ...result,
3215
+ [key]: value.map(item => (isObject(item) && !isArray(item) ? this.walkSchema(item, root) : item)),
3216
+ };
3222
3217
  }
3223
- }
3224
- // Recurse into allOf / oneOf / anyOf
3225
- for (const keyword of ['allOf', 'oneOf', 'anyOf']) {
3226
- if (isArray(result[keyword])) {
3227
- result = { ...result, [keyword]: result[keyword].map(s => this.walkSchema(s, root)) };
3218
+ else if (isObject(value)) {
3219
+ result = { ...result, [key]: this.walkSchema(value, root) };
3228
3220
  }
3229
3221
  }
3230
3222
  return result;