Commit graph

23 commits

Author SHA1 Message Date
Cody Robibero 906f701fa8
Convert CollectionType, SpecialFolderType to enum (#9764)
* Convert CollectionType, SpecialFolderType to enum

* Hide internal enum CollectionType values

* Apply suggestions from code review

Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com>

* Fix recent change

* Update Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs

Co-authored-by: Patrick Barron <barronpm@gmail.com>

---------

Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com>
Co-authored-by: Patrick Barron <barronpm@gmail.com>
2023-11-09 14:00:29 -07:00
Cody Robibero 9a0dfc00f1
Add all websocket messages to generated openapi spec (#9682)
* Add all websocket messages to generated openapi spec

* Use oneOf

* JsonIgnore ServerId

* Oops

* Add discriminators

* Add WebSocketMessage container for Inbound and Outbound messages
2023-06-10 07:28:21 -06:00
cvium cba9657aec fix openapi auth 2023-02-09 14:56:53 +01:00
Bond-009 69a51c425a
Fix all warnings in Jellyfin.Api (#9003) 2023-01-04 08:01:31 -07:00
Bond_009 52194f56b5 Replace != null with is not null 2022-12-05 15:01:13 +01:00
Bond_009 c7d50d640e Replace == null with is null 2022-12-05 15:00:20 +01:00
Niels van Velzen 21c19bab41 Backport pull request #8611 from jellyfin/release-10.8.z
Fix TranscodeReasons type in OpenAPI output

Original-merge: c86d5838be

Merged-by: Claus Vium <cvium@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2022-10-28 22:39:00 -04:00
Cody Robibero 5ddf4e031c Merge pull request #7867 from crobibero/name-guid-pair
(cherry picked from commit 69cc1e0bd8)
Signed-off-by: crobibero <cody@robibe.ro>
2022-06-10 23:43:18 -04:00
Cody Robibero 7424f0ca8c Merge pull request #7561 from DMouse10462/named-config-api-fix
Fix NamedConfiguration API Generation

(cherry picked from commit d7c548f3db)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
2022-04-17 15:45:11 -04:00
Bond_009 cbfa355e31 Update StyleCop 2021-12-24 18:28:27 +01:00
BaronGreenback bc1cc2d04a Remove unused using directives 2021-04-17 11:37:55 +01:00
crobibero 31d1dbfda6 Add SessionDiscoveryInfo to generated api-docs 2021-04-03 06:54:09 -06:00
crobibero 8e09276d7d Add websocket session message type to generated openapi.json 2021-03-10 16:33:46 -07:00
crobibero d5f0b046bb Add image file accept to openapi 2021-02-10 16:12:52 -07:00
Cody Robibero 91a9af95c2
Apply suggestions from code review
Co-authored-by: dkanada <dkanada@users.noreply.github.com>
2021-01-21 07:01:51 -07:00
crobibero 59ff2c5b4b Add ability to mark query parameter as obsolete. 2021-01-20 16:24:15 -07:00
crobibero 34029f860c Fix openapi file schema 2020-12-10 19:05:49 -07:00
crobibero 7a729ea8d6 Move OpenApiSecurityScheme to OperationFilter 2020-12-02 14:59:57 -07:00
crobibero 6353cb507d Fix nullability errors in Jellyfin.Server 2020-11-13 09:21:28 -07:00
crobibero 2b75af9873 set type of GroupUpdate 2020-10-01 10:40:58 -06:00
crobibero 4a3e0062f9 Add missing PlaystateRequest and remove additional GroupUpdate types 2020-10-01 09:39:57 -06:00
crobibero 5ee6f49204 Manually register models used in websocket messages. 2020-10-01 08:10:47 -06:00
crobibero 2f33bee2a9 Set openapi schema type to file where possible 2020-09-01 17:26:49 -06:00