[PR #4625] [MERGED] Fix OpenApi generation for BlurHash #10201

Closed
opened 2026-02-07 06:15:52 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4625
Author: @crobibero
Created: 11/30/2020
Status: Merged
Merged: 12/2/2020
Merged by: @cvium

Base: masterHead: api-docs-description


📝 Commits (1)

  • d2d71ac Fix OpenApi generation for BlurHash

📊 Changes

1 file changed (+9 additions, -18 deletions)

View changed files

📝 Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs (+9 -18)

📄 Description

Fixes https://github.com/jellyfin/jellyfin/issues/4624

Current output:

"ImageBlurHashes": {
 	"type": "object",
 	"properties": {
 		"Primary": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Art": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Backdrop": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Banner": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Logo": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Thumb": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Disc": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Box": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Screenshot": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Menu": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Chapter": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"BoxRear": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		},
 		"Profile": {
 			"type": "object",
 			"properties": {
 				"string": {
 					"type": "string",
 					"format": "string"
 				}
 			}
 		}
 	},
 	"description": "Gets or sets the blurhashes for the image tags.\r\nMaps image type to dictionary mapping image tag to blurhash value.",
 	"nullable": true
},

Corrected output:

"ImageBlurHashes": {
	"type": "object",
	"properties": {
		"Primary": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Art": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Backdrop": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Banner": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Logo": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Thumb": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Disc": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Box": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Screenshot": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Menu": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Chapter": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"BoxRear": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		},
		"Profile": {
			"type": "object",
			"additionalProperties": {
				"type": "string"
			}
		}
	},
	"description": "Gets or sets the blurhashes for the image tags.\r\nMaps image type to dictionary mapping image tag to blurhash value.",
	"nullable": true
},

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/4625 **Author:** [@crobibero](https://github.com/crobibero) **Created:** 11/30/2020 **Status:** ✅ Merged **Merged:** 12/2/2020 **Merged by:** [@cvium](https://github.com/cvium) **Base:** `master` ← **Head:** `api-docs-description` --- ### 📝 Commits (1) - [`d2d71ac`](https://github.com/jellyfin/jellyfin/commit/d2d71ac3a17716bceed13855261e015cdc46ed42) Fix OpenApi generation for BlurHash ### 📊 Changes **1 file changed** (+9 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs` (+9 -18) </details> ### 📄 Description Fixes https://github.com/jellyfin/jellyfin/issues/4624 Current output: ```json "ImageBlurHashes": { "type": "object", "properties": { "Primary": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Art": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Backdrop": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Banner": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Logo": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Thumb": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Disc": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Box": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Screenshot": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Menu": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Chapter": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "BoxRear": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } }, "Profile": { "type": "object", "properties": { "string": { "type": "string", "format": "string" } } } }, "description": "Gets or sets the blurhashes for the image tags.\r\nMaps image type to dictionary mapping image tag to blurhash value.", "nullable": true }, ``` Corrected output: ```json "ImageBlurHashes": { "type": "object", "properties": { "Primary": { "type": "object", "additionalProperties": { "type": "string" } }, "Art": { "type": "object", "additionalProperties": { "type": "string" } }, "Backdrop": { "type": "object", "additionalProperties": { "type": "string" } }, "Banner": { "type": "object", "additionalProperties": { "type": "string" } }, "Logo": { "type": "object", "additionalProperties": { "type": "string" } }, "Thumb": { "type": "object", "additionalProperties": { "type": "string" } }, "Disc": { "type": "object", "additionalProperties": { "type": "string" } }, "Box": { "type": "object", "additionalProperties": { "type": "string" } }, "Screenshot": { "type": "object", "additionalProperties": { "type": "string" } }, "Menu": { "type": "object", "additionalProperties": { "type": "string" } }, "Chapter": { "type": "object", "additionalProperties": { "type": "string" } }, "BoxRear": { "type": "object", "additionalProperties": { "type": "string" } }, "Profile": { "type": "object", "additionalProperties": { "type": "string" } } }, "description": "Gets or sets the blurhashes for the image tags.\r\nMaps image type to dictionary mapping image tag to blurhash value.", "nullable": true }, ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:15:52 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10201