{"id":"form-field-map","version":"1.0.0","description":"Rename form fields with an explicit id map and reject collisions.","supported_operations":["map form field ids","migrate form fields"],"unsupported_operations":["inferred renames","transitive closure","fuzzy matching","silent collision merge"],"semantics":["mapping rows are explicit {from, to} pairs. from must be a current field id. The step is not applied transitively.","unmapped is required and is keep or drop. Identity mappings are allowed.","Two sources for one target, or a kept field that already uses the target id, throw a collision naming the target and sources.","Dropped answers are echoed on the dropped row. Unknown answer keys throw instead of being dropped.","Output field order follows the original order. Prototype-named ids stay ordinary own keys."],"limits":{"max_input_bytes":262144,"max_output_bytes":262144,"max_input_depth":16,"max_input_nodes":20000,"max_fields":100,"max_choices":50,"max_respondents":100,"max_id_bytes":128,"max_label_bytes":256,"max_choice_bytes":128,"max_answer_string_bytes":4096,"max_answer_depth":6,"max_answer_nodes":50,"max_changes":500,"max_mapping":100},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["definition","mapping","unmapped"],"properties":{"definition":{"type":"object","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","label","type","required"],"properties":{"id":{"type":"string","minLength":1},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","integer","boolean","choice","multi","json"]},"required":{"type":"boolean"},"choices":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":50}}}}}},"answers":{"type":"object"},"mapping":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"type":"string","minLength":1},"to":{"type":"string","minLength":1}}}},"unmapped":{"type":"string","enum":["keep","drop"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["definition","renamed","dropped","unchanged_ids","counts"],"properties":{"definition":{"type":"object","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","label","type","required"],"properties":{"id":{"type":"string","minLength":1},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","integer","boolean","choice","multi","json"]},"required":{"type":"boolean"},"choices":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":50}}}}}},"answers":{"type":"object"},"renamed":{"type":"array"},"dropped":{"type":"array"},"unchanged_ids":{"type":"array","items":{"type":"string"}},"counts":{"type":"object"}}},"examples":[{"input":{"definition":{"fields":[{"id":"email","label":"Email","type":"string","required":true},{"id":"name","label":"Name","type":"string","required":false}]},"answers":{"email":"a@b.test","name":"Ada"},"mapping":[{"from":"email","to":"email_address"}],"unmapped":"keep"},"output":{"definition":{"fields":[{"id":"email_address","label":"Email","type":"string","required":true},{"id":"name","label":"Name","type":"string","required":false}]},"answers":{"email_address":"a@b.test","name":"Ada"},"renamed":[{"from":"email","to":"email_address"}],"dropped":[],"unchanged_ids":["name"],"counts":{"fields_in":2,"fields_out":2,"renamed":1,"dropped":0,"unchanged_ids":1,"answers_moved":1,"answers_dropped":0,"answers_kept":1}}}],"execute_url":"/v1/tools/form-field-map/versions/1.0.0/execute"}