Commit Graph

54 Commits

Author SHA1 Message Date
Boshi Lian
543edee201 fix well know in client side (#248) 2023-08-16 20:20:21 -07:00
Dr. Stefan Schimanski
9701a7c9ae openapi/preprocess_spec.py: expand globally shared parameters (#245) 2023-07-24 09:58:15 -07: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
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
Boshi Lian
34ea9c4d4e fit for new c# source generator (#221) 2022-02-24 14:18:14 -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
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
Karuna Sagar Krishna
6694faf24c Append value to x-implements in preprocess_spec.py to allow for customization (#200) 2021-09-14 09:37:08 -07:00
Jun Mukai
c311d74e3d Add typescript-fetch. (#199) 2021-08-07 08:15:29 -07:00
Abel Salgado Romero
f04504fc2e Add io.k8s.api.autoscaling.v1.Scale to Java gen (#178)
v1.Scale is a required type by clients supporting
k8s /scale resource.
2020-12-07 18:03:11 -08:00
Yuxin Bai
c3523deb7e Add -g parameter to java_crd_cmd.sh to enable generating CRD APIs (#175) (#176) 2020-12-03 09:49:01 -08:00
Boshi Lian
b2c43b35a0 force json for * (#173) 2020-11-01 12:08:52 -08:00
Boshi Lian
1ae5a04c0b fix csharp generator missing model (#172)
* fix csharp missing object

* add stream
2020-10-28 09:47:57 -07:00
Brendan Burns
08bb6d5403 Update csharp generator. (#170)
Co-authored-by: Brendan Burns <brendan.d.burns@gmail.com>
2020-10-08 19:43:06 -07:00
Min Kim
65a432d0cd use processed v1status definition name (#169) 2020-07-29 11:14:03 -07:00
Min Kim
648e8de639 enables base interface generation by default (#167) 2020-07-24 22:02:16 -07:00
Min Kim
d71ff1efd1 fixes crd model generation aborting on missing listmeta (#166) 2020-06-29 23:13:58 -07:00
Min Kim
d5a4e0d8ff bump code-gen and applies x-implements extension (#164) 2020-06-19 15:58:43 -07:00
Min Kim
f46fc82419 fixes CRD preprocess aborting (#163) 2020-06-19 15:56:39 -07:00
Allan Espinosa
deac82ed3c ad-hoc client generation for CRDs (#161)
* Insert CRD-mode into preprocessing

* Wire CRD-mode variables to shell scripts

* java: Move CRD-specific properties to a profile
2020-06-13 16:35:55 -07:00
Min Kim
16be7553cc remove watch/allowWatchBookmarks from deleteCollection openapi parameters (#158) 2020-05-18 15:23:36 -07:00
Tomasz Prus
b30bbc34e8 feat: update version in downloaded swagger.json spec (#144) 2020-02-09 13:19:52 -08:00
Min Kim
c81822b959 [java] enforce custom mapping for patch object (#140) 2019-12-10 15:48:05 -08:00
Min Kim
270d42bbe8 migrate java clients from swagger-codegen to openapi-generator (#117)
add reflection-equality config option

java: update openapi generator to 4.1.2

patch openapi-generator, format Quantity

Bring in a patched openapi-generator temporarily until
openapi-generator#4182 gets merged, and add a format to
resource.Quantity so it can have a custom typeMapping installed.

Also bring configuration of type and import mappings to the correct
(newer) format for the maven plugin.

remove the overrides

refactor

openapi-gen

generator 4.1.3

4.2.0
2019-11-16 08:43:40 -08:00
Min Kim
5b363c94af Revert "preserve field manager types (#123)" (#124)
This reverts commit f659d364ad.
2019-07-18 21:01:11 -07:00
Min Kim
8279e3f404 skip fetching swagger from upstream using OPENAPI_SKIP_FETCH_SPEC env (#122) 2019-07-18 20:59:11 -07:00
Min Kim
f659d364ad preserve field manager types (#123) 2019-07-03 20:36:12 -07:00
Min Kim
3bee7a06d0 java: preserve structurelized patch obj (#118) 2019-06-12 19:56:12 -07:00
Jon Schoning
87675b7e97 add remove_models (specific to client languages) in process_swagger (#112)
This is needed because openapi-generator does not allow us to override
a model definition such as IntOrString, if it exists in the json.

Once the model is removed, it can be re-mapped with a type-mapping

This change should not affect any client language, other than haskell.
2019-03-28 11:57:56 -07:00
Tomasz Prus
f3bcfa5da0 feat: add x-codegen-request-body-name in preprocessing step (#96) 2019-01-22 20:37:26 -08:00
Julian Taylor
d2b5052937 Add custom object status and scale api (#72)
* improve error message on failed spec download

* add scale and status api of custom objects

Closes gh-71
2018-08-01 15:48:21 -07:00
Tamal Saha
7d7ec1cfee Allow specifying a github repository if working on ecosystem projects (#63) 2018-06-25 07:30:35 -07:00
Alessandro Ogier
da2c88defb allow specifying a github username if working on forks (#58) 2018-05-02 22:10:15 -07:00
Yuvi Panda
af31f88a18 Use argparse for argument handling in preprocess_spec.py (#49)
More canonically pythonic than munging with sys.args!
2018-02-14 11:24:47 -08:00
Boshi Lian
8b1ebbc7a4 generator for patch v1 (#46) 2018-01-25 21:58:08 -08:00
Boshi Lian
a867e60133 csharp generator update for v1.8 (#39)
* handle intorstr and quantity in csharp

* remove generated public property from quantity

* add comment why mkdir before docker build
2017-12-08 07:31:38 -06:00
Brendan Burns
86d53c7c0b Merge pull request #36 from noironetworks/noironetworks
Fix crashes on Python 2.7+ and when an operation is missing the "tags" key
2017-11-30 18:36:47 -08:00
Ceridwen
263032d86c Fix KeyError with operations missing "tags" and crash on Python 2.7+ 2017-11-30 10:31:46 -08:00
Lewis Headden
3863091633 Disable pre-processing for resource.Quantity 2017-11-22 10:27:37 -05:00
Lewis Headden
4adc3f0211 Fix typo 2017-11-02 11:02:07 -04:00
Lewis Headden
ec6775b6ea Remove line break 2017-11-02 11:01:11 -04:00
Lewis Headden
0f9ff8b30a Continue loop on excluded primitive 2017-11-02 10:59:11 -04:00
Lewis Headden
762413f2d2 Add support for preprocessing variants based on language 2017-10-31 14:59:19 -04:00
mbohlool
32e0f33a32 Better support for IntOrString 2017-10-12 17:09:34 -07:00
Mehdy Bohlool
19c0932c2e Fix preprocessing script to remove deprecation redirection models 2017-10-03 00:32:49 -07:00