fix mid level issues. updated changelog

This commit is contained in:
Davide Scaini
2026-03-31 23:00:39 +02:00
parent f8abab2c23
commit 8f91503cf7
7 changed files with 119 additions and 33 deletions
+39 -3
View File
@@ -6,11 +6,11 @@
"$defs": {
"sport": {
"type": "string",
"enum": ["cycling", "running", "hiking", "walking", "swimming", "other"]
"enum": ["cycling", "running", "hiking", "walking", "swimming", "skiing", "other"]
},
"sub_sport": {
"type": ["string", "null"],
"enum": ["road", "mountain", "gravel", "indoor", "trail", "track", null]
"enum": ["road", "mountain", "gravel", "indoor", "trail", "track", "nordic", "alpine", "open_water", "pool", null]
},
"privacy": {
"type": "string",
@@ -36,6 +36,26 @@
"maxItems": 4,
"description": "[min_lon, min_lat, max_lon, max_lat]"
},
"mmp": {
"type": ["array", "null"],
"description": "Mean Maximal Power curve — [[duration_s, avg_watts], ...]",
"items": {
"type": "array",
"items": { "type": "integer" },
"minItems": 2,
"maxItems": 2
}
},
"best_efforts": {
"type": ["array", "null"],
"description": "Best efforts by distance — [[distance_km, time_s], ...]",
"items": {
"type": "array",
"items": { "type": "number" },
"minItems": 2,
"maxItems": 2
}
},
"lap": {
"type": "object",
"required": ["index", "started_at", "duration_s"],
@@ -86,10 +106,23 @@
"max_hr_bpm": { "type": ["integer", "null"] },
"avg_cadence_rpm": { "type": ["integer", "null"] },
"avg_power_w": { "type": ["integer", "null"] },
"mmp": { "$ref": "#/$defs/mmp" },
"best_efforts": { "$ref": "#/$defs/best_efforts" },
"best_climb_m": { "type": ["number", "null"] },
"source": { "$ref": "#/$defs/source" },
"privacy": { "$ref": "#/$defs/privacy" },
"detail_url": { "type": ["string", "null"] },
"track_url": { "type": ["string", "null"] }
"track_url": { "type": ["string", "null"] },
"preview_coords": {
"type": ["array", "null"],
"description": "Simplified track preview — [[lon, lat], ...] for card thumbnails",
"items": {
"type": "array",
"items": { "type": "number" },
"minItems": 2,
"maxItems": 2
}
}
},
"additionalProperties": false
}
@@ -164,6 +197,9 @@
"bbox": { "$ref": "#/$defs/bbox" },
"start_latlng": { "$ref": "#/$defs/latlng" },
"end_latlng": { "$ref": "#/$defs/latlng" },
"mmp": { "$ref": "#/$defs/mmp" },
"best_efforts": { "$ref": "#/$defs/best_efforts" },
"best_climb_m": { "type": ["number", "null"] },
"laps": { "type": "array", "items": { "$ref": "#/$defs/lap" } },
"timeseries": { "$ref": "#/$defs/timeseries" },
"source": { "$ref": "#/$defs/source" },