[backend/masto-api] Fix swagger doc generation

This commit is contained in:
Laura Hausmann 2024-02-28 21:01:02 +01:00
parent e441bb3e70
commit 8cf57191c1
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -79,7 +79,7 @@ public class MarkerController(DatabaseContext db) : ControllerBase
return await GetMarkers(request.Keys.ToList());
}
public Marker.MarkerType DecodeType(string type) =>
private static Marker.MarkerType DecodeType(string type) =>
type switch
{
"home" => Marker.MarkerType.Home,
@ -87,7 +87,7 @@ public class MarkerController(DatabaseContext db) : ControllerBase
_ => throw GracefulException.BadRequest($"Unknown marker type {type}")
};
public string EncodeType(Marker.MarkerType type) =>
private static string EncodeType(Marker.MarkerType type) =>
type switch
{
Marker.MarkerType.Home => "home",