Add full JSON logging for asset representation in uploads
Shows complete asset representation JSON in logs for debugging.
ENHANCED LOGGING:
Previously: Summary only (Model ID, security count, field count)
Now: FULL JSON + Summary
OUTPUT FORMAT:
```
Uploading: my_file.jpg
Parent Folder ID: abc123def456
============================================================
FULL ASSET REPRESENTATION (JSON):
============================================================
{
"metadata_model_id": "ferrero.model.video",
"security_policy_list": [
{"id": "policy1", "name": "Internal"},
{"id": "policy2", "name": "Confidential"}
],
"metadata": {
"metadata_element_list": [
{
"name": "Asset Info",
"metadata_element_list": [
{
"id": "FERRERO.FIELD.DESCRIPTION",
"value": {...}
},
... (all 27 fields)
]
}
]
}
}
============================================================
Summary:
Model ID: ferrero.model.video
Security Policies: 2
Metadata Fields: 27
```
BENEFITS:
✓ See exact JSON being sent to DAM API
✓ Debug metadata issues
✓ Verify field values
✓ Compare with successful uploads
✓ Copy JSON for Postman testing
The complete JSON is logged before each upload attempt.
Perfect for troubleshooting upload failures.
Changes:
- scripts/shared/dam_client.py
- Added full JSON dump with json.dumps(asset_representation, indent=2)
- Wrapped in separator lines for readability
- Kept summary for quick reference
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>