The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
03-23-2023 02:08 PM
Hi,
I'm running the command:
swagger-codegen generate -i https://developers.strava.com/swagger/swagger.json -l swift5
The DetailedActivity does not contain any of the SummaryActivity as described by the allOf section in https://developers.strava.com/swagger/activity.json#/DetailedActivity.
I've tried using version 3.0.41 and 2.4.30
A quick search indicated that it is a swagger bug?
Am I missing something here?
Thanks Antz
03-23-2023 02:31 PM
I also tried using openapi generator, but had to specify the skip validate spec parameter as validation fails
Errors:
-attribute paths.'/routes/{id}/export_gpx'(get).responses.200.content is unexpected
-attribute paths.'/routes/{id}/export_tcx'(get).responses.200.content is unexpected
The DetailedActivity generated looked better but it also generated a DetailsActivityAllOf one too.
Welcome to the Community - here is your guide to help you get started!