mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Manually describe Version for openapi
This commit is contained in:
@@ -440,6 +440,12 @@ namespace Jellyfin.Server.Extensions
|
|||||||
.Cast<IOpenApiAny>()
|
.Cast<IOpenApiAny>()
|
||||||
.ToArray()
|
.ToArray()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Swashbuckle doesn't use JsonOptions to describe responses, so we need to manually describe it.
|
||||||
|
options.MapType<Version>(() => new OpenApiSchema
|
||||||
|
{
|
||||||
|
Type = "string"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user