Commit Graph

25 Commits

Author SHA1 Message Date
Jon Schoning
c04d857e88 re-gen kubernetes with updated generator commit 2022-05-29 14:09:38 -07:00
Tom McLaughlin
89dec1775d Support aeson 2 2022-05-20 19:13:04 -07:00
Tom McLaughlin
8215bcfbdd Be able to build on GHC 9 2022-05-20 17:38:47 -07:00
Jon Schoning
541fb76466 fix Incorrectly generated query strings (that rely on + not being urlencoded)
In the Kubernetes API client, we should be able to generate queries like
    ?labelSelector=environment+in+%28production%2Cqa%29%2Ctier+in+%28frontend%29
    (from https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering).
    When the generated URIs URL-encode the plus signs, the API server rejects them.

    With this change, (newConfig :: IO KubernetesClientConfig) now sets
    the default configQueryExtraUnreserved setting to "+". Requests
    generated with this config object will avoid URI encoding "+" all
    querystring params.
2021-09-20 12:23:34 -05:00
Jon Schoning
7522b3fe86 udpate openapi-generator commit; fixes for ghc-9 2021-09-14 18:40:45 -05:00
Jon Schoning
93235ad70c regen for kubernetes release-1.20 2021-02-14 19:30:50 -06:00
Jon Schoning
8d64efcb7a re-include mimetypes for json patch 2021-01-06 15:34:06 -06:00
Jon Schoning
bdc7da25fc append optional parameters instead of replace 2020-10-27 18:42:18 -05:00
Jon Schoning
6ee7316b3f regen 2020-08-23 22:59:07 -05:00
Jon Schoning
fbb260a796 update to Kubernetes 1.16 2019-10-07 10:36:38 -05:00
Fernando Rincon
d1919b64cc Revert "Generated code using date format"
This reverts commit 3aaceece57.
2019-10-01 22:29:38 +08:00
Fernando Rincon
a224f7070d Revert "Fixing problem with a trailing comma generated wrongly by the openapi generator"
This reverts commit f179218e85.
2019-10-01 22:29:06 +08:00
Fernando Rincon
f179218e85 Fixing problem with a trailing comma generated wrongly by the openapi generator 2019-10-01 21:34:55 +08:00
Fernando Rincon
3aaceece57 Generated code using date format 2019-10-01 21:13:28 +08:00
Fernando Rincon
3431a70183 Fix datetime problem with kubernetes. Pass microseconds instead of milliseconds 2019-09-29 18:15:36 +08:00
Tom McLaughlin
e0a4857242 Fix FromJSON/ToJSON instances of CustomTypes (IntOrString and Quantity) 2019-06-01 06:32:30 -07:00
Irvi Aini
544b5267f2 Bump version to 1.14 2019-05-15 17:23:25 +07:00
Jon Schoning
7a0b709549 Add custom types IntOrString and Quantity
- regen with import-mappings
- add CustomTypes and CustomInstances
- update openapi-generator commit

Instead of A.Value, IntOrString becomes a sum type with constructors IntOrStringI and IntOrStringS
Instead of Text, Quantity becomes a newtype over Text. Currently no custom construction or serialization is implemeneted (i.e. the Text should be the wire format)
  See CustomTypes.hs for details on the Quantity type.
2019-03-28 14:39:40 -05:00
Shimin Guo
9bc44160fd adding previously untracked files 2019-03-13 23:21:02 -07:00
Shimin Guo
ec97160bc8 Generate from v1.13.4 2019-03-13 07:46:12 -07:00
Shimin Guo
6d0ee58ade rerun codegen 2019-03-11 22:45:15 -07:00
Shimin Guo
1f4868fbe1 change package name for generated code to kubernetes-openapi-client-gen. adapt existing code to the change 2019-02-26 10:08:58 -08:00
Shimin Guo
9ac01d2c31 new package name and module base 2019-01-30 13:04:51 -08:00
Shimin Guo
fd9374f4f1 Regenerate the haskell client
Changes:
- Correct handling of */* mime types
- The API module split into submodules
- Allow non-unique operation IDs. Previously when there was one monolithic API module, operations with the same IDs under different prefixes (e.g. getAPIGroup) were appended numbers to disambiguate them. Now they live in different modules, it's OK for them to have the same IDs.
2018-01-11 08:19:40 +00:00
mbohlool
3cb442629a Add first version of generated client 2017-12-21 14:06:07 -08:00