Skip to main content

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

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.


Reply