OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.

Home Page:https://openbb.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] [Rest API]: Literal error when a comma-separated list of countries is used.

deeleeramone opened this issue · comments

Entering a comma-separated list of countries to the CPI REST API endpoint creates a "literal_error".

The Swagger docs show the url as each item in the list being an independent declaration of the "countries" param:

...economy/cpi?provider=fred&countries=australia&countries=austria&countries=belgium&

The URL should work in the same way other multi-ticker inputs operates:

economy/cpi?provider=fred&countries=austria,belgium,australia