Move json schema declarations from api_client to platforms