Commit Graph

264 Commits

Author SHA1 Message Date
Ryan Eberhard
fc51af92af Bump openapi generator version in java.sh (#283) 2025-10-24 07:59:39 -07:00
Kevin Lin
2f537940db Bump openapi generator in java.sh (#280) 2025-05-02 12:36:00 -07:00
Min Jin
7f27576537 separate a new path parameter resource_plural to avoid key conflict (#278)
Signed-off-by: Min Jin <minkimzz@amazon.com>
2025-02-04 10:18:59 -08:00
Min Jin
0fcae0a4a3 fixes the typo in custom object swagger model (#277)
Signed-off-by: Min Jin <minkimzz@amazon.com>
2025-02-01 08:34:56 -08:00
Colin Ihrig
b461333bb5 fix(typescript): enable importFileExtension option (#275)
This commit updates the TypeScript generator options to include
importFileExtension. This is done in order to support ESM in
the JavaScript client, as ESM requires explicit extensions.

Refs: https://github.com/kubernetes-client/javascript/pull/2062
2024-12-03 23:31:00 +00:00
Mick van Gelderen
d519da94ca Default to openapi-generator 7.10.0 in rust.sh (#273)
The openapi-generator needs to be at least 5.2.0 to build properly, see this PR: https://github.com/OpenAPITools/openapi-generator/pull/9745.
2024-11-23 21:28:56 +00:00
ArpanSolanki29
ea9a2062d5 feat: Add field selector for deletion api of custom object collection (#272) 2024-10-26 19:14:52 +01:00
Peter Kaššák
44f66ad942 Added annotationLibrary to java configuration (#271) 2024-10-17 17:03:04 +01:00
David Xia
6b9189ae4e feat: add GET listCustomObjectForAllNamespaces (#269)
for the API path `/apis/{group}/{version}/{plural}`.
We define a new key `/apis/{group}/{version}/{plural}#[U+200E]`
in `custom_objects_spec.json` to work around this limitation.

> OpenAPI defines a unique operation as a combination of a path and an HTTP
> method. This means that two GET or two POST methods for the same path are not
> allowed.

— https://swagger.io/docs/specification/paths-and-operations

We use the hair space empty character to visually hide this path param from the
Swagger UI.

addresses #268

Work around was taken from [here][1].

[1]: https://github.com/OAI/OpenAPI-Specification/issues/182#issuecomment-771566673
2024-09-18 16:26:44 +01:00
Brendan Burns
37662b2a59 Add nullable arrays and maps. (#267) 2024-09-09 19:32:05 +01:00
Brendan Burns
2658f902d3 Update java.sh (#265) 2024-05-24 09:55:11 -07:00
Arcadiy Ivanov
84f2bc9e34 Add fieldValidation to custom objects API (#260)
provides a fix for 259
2023-12-31 04:11:55 +01:00
Carlos Sanchez
e841047a62 chore: bump maven to 3.9.6 (#262) 2023-12-27 18:56:11 +01:00
Carlos Sanchez
255cc279b7 fix: unbound variable USE_SINGLE_PARAMETER (#261)
openapi/openapi-generator/client-generator.sh: line 86: USE_SINGLE_PARAMETER: unbound variable

use default from pom if empty

introduced in #257
2023-12-27 18:52:52 +01:00
Clayton Walker
dde176ff81 Fix kubernetes object assumption (#258) 2023-12-21 17:33:45 +01:00
ParkDal
a608a9dca3 feat: Add label selector to deletion api of custom object collection (#256) 2023-12-03 16:54:54 +01:00
Min Jin
b1902f4f94 allow customize USE_SINGLE_PARAMETER (#257)
Signed-off-by: Min Jin <minkimzz@amazon.com>
2023-12-02 02:35:41 +01:00
Min Jin
7ac2e3d8c0 always set operation#consumes to application/json (#255)
Signed-off-by: Min Jin <minkimzz@amazon.com>
2023-10-28 19:32:32 +02:00
Aarni Koskela
4209a8e4be Fix checking out newer OpenAPI generator tags (#254)
Checkout would fail with `pathspec 'v7.0.1' did not match any file(s) known to git` without this change.
2023-09-27 08:50:09 -07:00
Joshua Perry
35fc3af308 Use shallow clone for generator repo (20MB vs 1GB) (#251) 2023-09-21 13:30:27 -07:00
Brendan Burns
0ef2cecd6f Update preprocess_spec.py (#250) 2023-09-18 13:07:31 -07:00
Dasarathi Rout
0c7b833344 Issues-246 - Added attributes for generated pom.xml (#249) 2023-08-18 09:04:29 -07:00
Boshi Lian
543edee201 fix well know in client side (#248) 2023-08-16 20:20:21 -07:00
Dasarathi Rout
e2334cc3a4 Issue 246 Update java.sh (#247)
Issue 246, update of open-api-tool v6.6.0 which 
configOptions <useJakartaEe>true</useJakartaEe> and generate code with jakarta.annotation.*.
2023-08-15 09:11:20 -07:00
Dr. Stefan Schimanski
9701a7c9ae openapi/preprocess_spec.py: expand globally shared parameters (#245) 2023-07-24 09:58:15 -07:00
Hui Yu
d2dd5e9f6f Upgrade base image (#244) 2023-06-03 11:24:41 -07:00
Pavan Kumar
f6b4147e44 migrate the javax.annotation.* to jakarta.annotation.* (#241)
Added <useJakartaEe>true</useJakartaEe> in java.xml
2023-05-16 06:43:37 -07:00
tyama711
c0ba2d2094 Fixed error when PACKAGE_NAME is not 'client'. (#242) 2023-05-10 19:15:10 -07:00
Michael Valdron
fa20646e40 bump openapi generator revision for typescript.sh (#239)
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
2023-03-10 08:46:40 -08:00
Hui Yu
b32dcd6dc9 Set git safe directory to avoid dubious ownership error (#237) 2023-02-22 08:55:57 -08:00
Dmitry Makhrovsky
39ed53daeb Fix python-crd-cmd.sh cli options and improve verbosity in preprocess (#235)
* Missed colon added

* pass client version added to options

* added verbosity to crd gen
2023-01-09 15:49:12 -08:00
Jun Mukai
ea5af85f5b Fix the handling of IntOrString. (#233)
IntOrString has been considered to be 'object' in typescript-fetch,
but it should be specially handled. This allows a similar handling
done in typescript.xml.
2022-12-05 08:59:05 -08:00
Grigoris Thanasoulas
0ffb80637b Show progress of repo cloning (#230)
Show progress of 'git clone' command so that it is apparent the command
is running and the program is not stuck. This is especially helpful if
the user is running on a slow internet connection.

Signed-off-by: Grigoris Thanasoulas <gregth@arrikto.com>

Signed-off-by: Grigoris Thanasoulas <gregth@arrikto.com>
2022-10-20 11:22:59 -07:00
Jacob Henner
be467ffebd Add get_api_resources to the custom objects API (#232)
The custom objects API spec did not expose `GET /apis/{group}/{version}`
whereas most of the built-in APIs do (as get_api_resources()). This
change adds the getCustomObjectsAPIResources operation to the custom
objects API spec, which will expose `GET /apis/{group}/{version}` for
arbitrary custom resources (as `get_api_resources(group, version)` in
generated clients).
2022-10-20 11:21:00 -07:00
Sayak Mukhopadhyay
2c67c6df18 Fix client generator container not deleting after stopping (#227) 2022-08-24 07:54:06 -07:00
Fredrich Ombico
c866e40a2b Fix issue with apimachinery v2 models [#220] (#225) 2022-07-01 07:19:24 -07:00
uesyn
c557f7ffbc Typescript generator handles MicroTime as custom object in stead of Date object (#224) 2022-06-28 14:59:34 -07:00
Grigoris Thanasoulas
1b21c3cdb4 Don't ignore resources in "io.k8s" group if the user has explicitly requested to generate models for these (#223)
This is needed in case the user needs to generate clients and models for
resources that are not built-in but, yet, their group prefix starts with
'io.k8s', such as the Volume Snapshot CRDs, which belong to group
'snapshot.storage.k8s.io'.

Signed-off-by: Grigoris Thanasoulas <gregth@arrikto.com>
2022-03-30 15:19:57 -07:00
Tomasz Prus
6f03521994 [feat/python-asyncio] switch openapi generator to 5.4.0 (#222) 2022-03-17 13:54:42 -07:00
Boshi Lian
34ea9c4d4e fit for new c# source generator (#221) 2022-02-24 14:18:14 -08:00
Oliver King
aae6c8478b switch generator name (#219) 2022-02-03 09:15:46 -08:00
Oliver King
f0bb44756d Revert "Add handling of IntOrString for other typescript variations. (#214)" (#218)
This reverts commit 0c250bbb75.
2022-01-07 15:35:33 -08:00
Hui Yu
8b5821a498 Support IntOrString for c client (#216) 2021-12-19 09:01:26 -08:00
Oliver King
f6aa01426d add typescript three plus (#215) 2021-12-14 14:44:50 -08:00
Jun Mukai
0c250bbb75 Add handling of IntOrString for other typescript variations. (#214) 2021-12-13 07:27:59 -08:00
alex bezek
82c3ff5294 Update typescript open API generator to handle the IntOrString type (#213)
* Update typescript open API generator to handle the IntOrString type

* remove trailing comma
2021-11-19 09:10:52 -08:00
Brendan Burns
291f9a6ca5 Update proto generation. (#211) 2021-11-05 13:46:41 -07:00
Brendan Burns
2db702d0fe Convert a number of XML files to generatorName (#210) 2021-11-05 12:38:41 -07:00
Yu Liao
ca817f53d4 org.apache.maven.plugin.MojoExecutionException: Illegal configuration: (#209)
'language' and  'generatorName' can not be set both, remove 'language'
from your configuration
2021-10-26 14:21:10 -07:00
itaru2622
07b7f03a4a add openapi-generator v5.x support to python client (#208) 2021-10-26 10:31:30 -07:00