mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #7775 from crobibero/openapi-version
This commit is contained in:
commit
4c0510ee6d
@ -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"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user