{"id":"form-definition-diff","version":"1.0.0","description":"Diff two form definitions by stable field id, including choice lists and field order.","supported_operations":["diff form fields","form structure diff"],"unsupported_operations":["filled answer diff","fuzzy field matching","html extraction","pdf or ocr"],"semantics":["Match fields by exact id. Do not infer renames. NFC and NFD ids are different.","Duplicate field ids are rejected. Unknown keys are rejected. U+0000 is rejected.","Field order is not equality. A shared-id sequence change sets order_changed and returns both sequences.","changed.changes lists label, type, required, and choices in that order, and only the ones that differ.","Choice order is part of the definition. choice_added and choice_removed keep the source order. choice_reordered compares the shared choice sequence.","Unchanged fields are counted and not copied. Counts match the arrays. Over-budget output is rejected."],"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":["left","right"],"properties":{"left":{"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}}}}}},"right":{"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}}}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["added","removed","changed","order_changed","counts"],"properties":{"added":{"type":"array"},"removed":{"type":"array"},"changed":{"type":"array"},"order_changed":{"type":"boolean"},"common_order_left":{"type":"array","items":{"type":"string"}},"common_order_right":{"type":"array","items":{"type":"string"}},"counts":{"type":"object"}}},"examples":[{"input":{"left":{"fields":[{"id":"email","label":"Email","type":"string","required":true},{"id":"plan","label":"Plan","type":"choice","required":true,"choices":["free","pro"]}]},"right":{"fields":[{"id":"plan","label":"Plan","type":"choice","required":true,"choices":["pro","team"]},{"id":"seats","label":"Seats","type":"integer","required":false}]}},"output":{"added":[{"id":"seats","field":{"id":"seats","label":"Seats","type":"integer","required":false}}],"removed":[{"id":"email","field":{"id":"email","label":"Email","type":"string","required":true}}],"changed":[{"id":"plan","changes":["choices"],"left":{"id":"plan","label":"Plan","type":"choice","required":true,"choices":["free","pro"]},"right":{"id":"plan","label":"Plan","type":"choice","required":true,"choices":["pro","team"]},"choice_added":["team"],"choice_removed":["free"],"choice_reordered":false}],"order_changed":false,"counts":{"added":1,"removed":1,"changed":1,"unchanged":0,"reordered":0}}}],"execute_url":"/v1/tools/form-definition-diff/versions/1.0.0/execute"}