k8s-api
k8s-api copied to clipboard
Opt out of key rewriting
It looks like this library does non-trivial key rewriting when (de)-serializing JSON: transforming strings to keywords, kebab-case, etc.
Could we opt out of this? When it comes to API wrappers, some users (myself included) favor straightforwardness over prettiness.
So rather than write:
{:kind :Namespace
:action :list
:request {:namespace "default"
:body {:api-version "v1"}}}
... I would much rather write:
{:kind :Namespace
:action :list
:request {"namespace" "default"
"body" {"apiVersion" "v1"}}}
thus enabling more straightforward transformation between Clojure expressions and, say, JSON files passed to kubectl
.