Skip to content

Opt out of key rewriting #12

@vvvvalvalval

Description

@vvvvalvalval

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions