fix build of api_spec