Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt out of key rewriting #12

Open
vvvvalvalval opened this issue Jul 5, 2023 · 0 comments
Open

Opt out of key rewriting #12

vvvvalvalval opened this issue Jul 5, 2023 · 0 comments

Comments

@vvvvalvalval
Copy link

vvvvalvalval commented Jul 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant