Commit Graph

127 Commits

Author SHA1 Message Date
Niels van Velzen
3613fa5545 Update code for Clikt 5
Some checks failed
Repo / Label merge conflict / Triage (push) Failing after 1s
SDK / Documentation / Lint (push) Failing after 1s
SDK / Documentation / Build Vitepress (push) Failing after 1s
SDK / Documentation / Build Dokka (push) Failing after 1s
SDK / Documentation / Deploy (push) Has been skipped
SDK / Lint / Lint (push) Failing after 1s
SDK / Publish / Publish (push) Failing after 1s
SDK / Test / Test (17) (push) Failing after 1s
SDK / Test / Test (21) (push) Failing after 1s
SDK / Test / Validate binary compatibility (push) Failing after 1s
SDK / Test / Verify OpenAPI sources (push) Failing after 1s
SDK / Unstable branch / Update (push) Failing after 1s
2024-09-22 10:33:25 +02:00
Niels van Velzen
52fbcf4efe Add LiveTVModelsHook 2024-06-18 17:50:02 +02:00
Niels van Velzen
f7a6d5f6b3 Remove support for "stable-pre" OpenAPI flavor 2024-06-08 12:29:51 +02:00
Niels van Velzen
13eb48cd08 Update URL for OpenAPI source 2024-06-08 12:29:51 +02:00
Niels van Velzen
e445b81380 Support setting content type for image uploads 2024-06-02 09:31:21 +02:00
Niels van Velzen
3fc15811e0 Remove DefaultUserIdHook 2024-03-05 22:18:20 +01:00
Niels van Velzen
91c7507c98 Add type to make generator aware of operation request body type 2024-02-24 16:50:20 +01:00
Niels van Velzen
0e87a34565 Only use ByteReadChannel for API responses 2024-02-24 14:01:07 +01:00
Niels van Velzen
6804fa5e65 Remove support for includeCredentials from ApiClient.createUrl and generated API 2024-02-10 15:21:58 +01:00
Niels van Velzen
f8d7099cb4 Fix updateApiSpec* tasks not specifying dependency order 2024-02-05 19:27:55 +01:00
Niels van Velzen
a7469b6374 Remove source and target compatibility options 2024-02-04 14:57:51 +01:00
Niels van Velzen
d9f9ff3a32 Fix nullability error in openapi-generator build file 2024-02-04 14:57:51 +01:00
Niels van Velzen
a6f7ff1a3c
Add RegexValidation to OpenAPI generator (#841)
* Add RegexValidation to OpenAPI generator

* Update generated sources
2024-02-04 14:49:05 +01:00
Niels van Velzen
b49e99807a Don't add @SerialName annotation to polymorphic discriminator property in ObjectModelBuilder 2023-06-27 20:17:59 +02:00
Niels van Velzen
a8ac58ebbd Merge EmptyApiModel into ObjectApiModel and add fix empty constructor 2023-06-27 20:16:51 +02:00
Niels van Velzen
492b1d2b85 Support readOnly properties in OpenAPI generator 2023-05-16 14:25:14 +02:00
Niels van Velzen
3c610643ce Add interfaces and polymorphic serialization to OpenAPI generator 2023-05-14 21:25:13 +02:00
Niels van Velzen
0430b5f098 Fix getDefaultEnumMember dependent on schema order 2023-04-29 22:44:39 +02:00
Niels van Velzen
28cedc4ff1 Add descriptions to enum functions and fix typo in description for model request operations 2023-04-10 15:16:02 +02:00
Niels van Velzen
c71cdcf071 Add fromNameOrNull and fromName functions to generated enum models 2023-04-10 14:58:39 +02:00
Niels van Velzen
d530dd7349 Force single line in createParameterValidation 2023-04-06 23:42:31 +02:00
Niels van Velzen
61de6651f5 Add compare command to openapi-generator 2023-03-17 20:02:15 +01:00
Niels van Velzen
fdb1d9ce1f Use lazy injection for openapi-generator CLI 2023-01-03 16:41:09 +01:00
Niels van Velzen
fcf130479a Make CurrentUserIdDefaultValue a data class 2022-12-30 23:41:33 +01:00
Niels van Velzen
55f31ef66c Add command line option to disable hooks in openapi-generator 2022-12-30 23:36:08 +01:00
Niels van Velzen
f4d385df11 Use Clikt in openapi-generator 2022-12-21 11:16:20 +01:00
Niels van Velzen
97503ff601 Remove TranscodingInfoTranscodeReasonsHook 2022-10-29 13:15:59 +02:00
Niels van Velzen
4c7662f130 Remove redundant SyncPlayGroupUpdateHook
The generator now handles empty schemas by itself, so we don't need to change the type explicitly
2022-10-22 15:53:56 +02:00
Niels van Velzen
68ad896e42 Add TranscodingInfoTranscodeReasonsHook to fix issue with OpenAPI spec 2022-10-08 13:07:26 +02:00
Niels van Velzen
97beea0d0e Add Gradle download plugin to version catalog 2022-09-30 19:01:12 +02:00
Niels van Velzen
65cff81b06 Implement DescriptionHook for more advanced description customization 2022-09-21 22:22:47 +02:00
Niels van Velzen
2b938a0055 Generate request models 2022-08-27 16:10:04 +02:00
Niels van Velzen
9bcfeb80cd Add DefaultValue.EnumMember 2022-08-17 12:22:27 +02:00
Niels van Velzen
59e7738b5e Add GeneratorContext to contain metadata during API generation 2022-08-17 12:22:27 +02:00
Niels van Velzen
aef4b29b8f Don't use Any type for defaultValue in generator 2022-08-15 21:28:30 +02:00
Niels van Velzen
aadc72b7ed Suppress ComplexMethod issue on defaultValue function 2022-08-15 20:08:29 +02:00
Niels van Velzen
0b69e2aaf5 Support default values from OpenAPI spec in generated models 2022-08-15 20:08:29 +02:00
Niels van Velzen
f325618640 Optimize map building in generator 2022-08-07 11:06:36 +02:00
Niels van Velzen
a561badbc7
Generate URL builder function for ClientLogApi.logFile (#432)
* Generate URL builder function for ClientLogApi.logFile

* Update generated sources
2022-07-07 00:32:10 +02:00
Niels van Velzen
3a1599d51d
Set input/output in openapi-generator tasks (#411)
This should fix the CI sometimes skipping the apiDump task
2022-05-26 02:30:39 +02:00
Niels van Velzen
a687223c51 Migrate unit tests to Kotest 2022-04-30 15:51:04 +02:00
Niels van Velzen
2a9dd0f1ba Remove DisplayPreferencesDtoNullabilityFixHook 2022-04-17 19:16:01 +02:00
Niels van Velzen
7ed6c96156
Use JsonElement type for empty schema (#367) 2022-04-17 17:29:32 +02:00
Niels van Velzen
58ec4be393 Add generator task for stable-pre openapi files 2022-04-17 11:09:35 +02:00
Niels van Velzen
18c9883818
Update @OptIn annotations (#368) 2022-04-08 17:28:35 +00:00
Niels van Velzen
c1ce3a88a3 Update KotlinPoet to 1.11.0 2022-03-25 20:03:03 +01:00
Niels van Velzen
c2680983e8 Add DisplayPreferencesDtoNullabilityFixHook
A hook that modifies the type of the "customPrefs" property in "DisplayPreferencesDto" to fix a nullability issue. In the 10.7 API specification the value of the map is incorrectly labelled as not-null. This hook changes the type to the exact type emitted from the 10.8 alpha API specification.
2021-12-27 16:06:32 +01:00
Niels van Velzen
012f76f7f3
Disable wildcard imports (#344) 2021-12-23 13:41:22 +01:00
Niels van Velzen
5f5e718f3c Review feedback 2021-11-06 14:04:15 +01:00
Niels van Velzen
17f8d8f56e Fix generator ignoring non-json request body types
Generator now supports image (bytearray) and string bodies and errors for unknown types.
2021-11-06 11:54:57 +01:00