mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Manually describe Version for openapi
This commit is contained in:
parent
60affd0965
commit
760b021032
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue