mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4037] [MERGED] Set openapi schema type to file where possible #9836
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4037
Author: @crobibero
Created: 9/2/2020
Status: ✅ Merged
Merged: 9/9/2020
Merged by: @Bond-009
Base:
master← Head:api-stream-return📝 Commits (10+)
2f33beeSet openapi schema type to file where possiblec989529Fix ValidatePath response codec473645Set openapi schema type to file where possibleec2a5e4Simplify file returnsa698dabSpecify image file return for GetItemImage2932c4d2Clean api return types9c6d011Add missing image return types1be84e8Merge remote-tracking branch 'upstream/master' into api-stream-returneb2dcbdMerge remote-tracking branch 'upstream/master' into api-stream-returna26063ffix merge📊 Changes
27 files changed (+247 additions, -32 deletions)
View changed files
➕
Jellyfin.Api/Attributes/ProducesAudioFileAttribute.cs(+18 -0)➕
Jellyfin.Api/Attributes/ProducesFileAttribute.cs(+28 -0)➕
Jellyfin.Api/Attributes/ProducesImageFileAttribute.cs(+18 -0)➕
Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs(+18 -0)➕
Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs(+18 -0)📝
Jellyfin.Api/Controllers/AudioController.cs(+2 -0)📝
Jellyfin.Api/Controllers/ConfigurationController.cs(+3 -0)📝
Jellyfin.Api/Controllers/DashboardController.cs(+3 -0)📝
Jellyfin.Api/Controllers/DlnaServerController.cs(+11 -4)📝
Jellyfin.Api/Controllers/DynamicHlsController.cs(+7 -0)📝
Jellyfin.Api/Controllers/EnvironmentController.cs(+3 -3)📝
Jellyfin.Api/Controllers/HlsSegmentController.cs(+4 -0)📝
Jellyfin.Api/Controllers/ImageByNameController.cs(+10 -6)📝
Jellyfin.Api/Controllers/ImageController.cs(+10 -2)📝
Jellyfin.Api/Controllers/ItemLookupController.cs(+8 -6)📝
Jellyfin.Api/Controllers/LibraryController.cs(+4 -2)📝
Jellyfin.Api/Controllers/LiveTvController.cs(+4 -0)📝
Jellyfin.Api/Controllers/MediaInfoController.cs(+2 -0)📝
Jellyfin.Api/Controllers/RemoteImageController.cs(+3 -1)📝
Jellyfin.Api/Controllers/SubtitleController.cs(+5 -2)...and 7 more files
📄 Description
Swashbuckle doesn't support generating
Schema Type: File, so have to create a filter that will edit the schema.AspNetCore doesn't support
[Produces()]with a wildcard.#4029
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.