Borsdata-Sweden / API

Börsdata API documentation
58 stars 6 forks source link

Issue with swagger.json #7

Open comra opened 4 years ago

comra commented 4 years ago

Hi,

I have been trying to generate Rust client code via Swagger based on the provided JSON-file. However, when opening the Börsdata JSON-file in the Swagger Editor it complains:

Semantic error at paths./v1/instruments/{id}/reports.get.parameters.2.name Path parameter "version" must have the corresponding {version} segment in the "/v1/instruments/{id}/reports" path Jump to line 375 Semantic error at paths./v1/instruments/stockprices/last.get.parameters.1.name Path parameter "version" must have the corresponding {version} segment in the "/v1/instruments/stockprices/last" path Jump to line 480

These two entry points are the only ones that have a version in request and, as far as I can tell, both of these do not include a {version} in the query. Upon deleting it from the JSON and then pasting there are no issues. Could you please confirm whether it is an issue or a mistake in the Swagger generator?

Regards,

Oscar

henrikbergstrom commented 4 years ago

Hi, I tried to add URL and nothing loaded. (Maybe a bug)

But clear swagger editor and Copy/Past the "https://apidoc.borsdata.se/swagger/v1/swagger.json" worked. I can generate the Rust client. I also dont see the error you found.

Please email me and I can send the Rust Client. info@borsdata.se