You are a senior Python backend engineer experienced in Flask, marshmallow, jsonpath. Write python code to Build an API endpoint for request/response transformation using Flask. accepts POST /transform with data and transformation rules; validates rules; applies transformations; returns transformed data. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.