Skip to content

Commit 9307f27

Browse files
authored
feat: Update elapsed and moving time types to float (#178)
These values, representing time, can contain fractions of seconds and are better represented as floating-point numbers. This change updates both the OpenAPI specification and the generated Go model for improved precision.
1 parent f0e852f commit 9307f27

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎docs/swagger.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,7 +2906,8 @@
29062906
},
29072907
"elapsed_time": {
29082908
"description": "The total elapsed time of the considered activities.",
2909-
"type": "integer"
2909+
"type": "number",
2910+
"format": "float"
29102911
},
29112912
"elevation_gain": {
29122913
"description": "The total elevation gain of the considered activities.",
@@ -2915,7 +2916,8 @@
29152916
},
29162917
"moving_time": {
29172918
"description": "The total moving time of the considered activities.",
2918-
"type": "integer"
2919+
"type": "number",
2920+
"format": "float"
29192921
}
29202922
}
29212923
},

‎internal/gen/strava-api-go/models/activity_total.go‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)