fix api_spec build