Skip to content

cleverage/process-bundle#117 - Add demo.mapping_array_target_path - #76

Merged
njoubert-cleverage merged 1 commit into
mainfrom
process-bundle-117
Oct 9, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
process-bundle-117

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Demonstration of cleverage/process-bundle#117 (target property paths of MappingTransformer on an array destination), implemented by cleverage/process-bundle#256 (merged).

bin/console cleverage:process:execute demo.mapping_array_target_path -vv

demo.mapping_array_target_path writes four kinds of target properties on an array destination:

  • name (simple name): name key
  • address.city (nested path): address.city literal key, with a deprecation (it will throw in v6.0)
  • [address][zip] (index notation): nested array
  • [contact.email] (index notation): contact.email literal key

Output (checked): ['name' => 'John', 'address.city' => 'Lyon', 'address' => ['zip' => '69005'], 'contact.email' => 'john@example.com'], with User Deprecated: Setting the target property 'address.city' as a literal key of an array destination is deprecated... logged for address.city only.

Requires the bundle to be updated in this project (cleverage/process-bundle main since #256) to get the deprecation.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None (new demo process only).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 40c4ec3 into main Oct 9, 2026
17 checks passed
@njoubert-cleverage
njoubert-cleverage deleted the process-bundle-117 branch October 9, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant