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.
- 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.
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.