Before connecting your gateway to Moveworks, use the validate.py script that ships with the Content Gateway Starter Code to confirm that every endpoint on your running server returns responses that conform to the Content Gateway API schema.
The validator works against any source system. It tests protocol conformance, not content. Run it against the demo server before writing any code, and again after connecting your real source.
validate.py is part of the Content Gateway Starter Code repo. If you don’t have it locally yet, clone it from github.com/moveworks/gateway and cd gateway/starter-code before running the commands below.
validate.py)GATEWAY_API_KEY set to the key your server expectsrequests installed (pip install -r requirements.txt)Files only: use this when your Strategy Config is set to Public to all members:
Full validation including users, groups, and permissions (use this when your Strategy Config is set to ReBAC):
Against a deployed server:
Files only (default)
Additional checks with --rebac
Run against the demo server (python content_gateway.py followed by python validate.py --rebac):
The validator prints exactly which field is missing or malformed. The most common causes: