biothings / smartapi-kg.js

A nodejs library for generate knowledge graphs based on SmartAPI Specifications
Apache License 2.0
0 stars 4 forks source link

Fix #258: Update config list to use SmartAPI IDs instead of API name #38

Closed ericz1803 closed 3 years ago

ericz1803 commented 3 years ago

Fix https://github.com/biothings/BioThings_Explorer_TRAPI/issues/258. Also merge related pull request: https://github.com/biothings/BioThings_Explorer_TRAPI/pull/259

It's a 'breaking change', but I don't believe this part of the code is used anywhere but for the v1/query endpoint.

Change the apiNames list into a list of objects in the shape of

{
  id: SMARTAPI_ID
  name: API_NAME
}

Also prints a debug message if the api names from the config and the specs file don't match.