I’m running tyk gateway 2.4.2, it’s the standalone community edition.
I’m using the following environment variables to set it up
TYK_GW_POLICIES_POLICYSOURCE=file
TYK_GW_POLICIES_POLICYRECORDNAME=/opt/gateway/policies/policies.json

If your Tyk configuration is standalone and configuration is being managed via the REST API without the support of the dashboard, then you will need to set the policies section in your configuration file as follows:

It appears our linter is a bit strict at the moment, you can quickly fix this yourself for now. If you go to Tyk/lint/schema.go and modify"policy_source": { "type": "string", "enum": ["", "service", "rpc", "file"] }

And then recompile the gateway it should be fixed, I’ll fix this on our master in the meantime.