Skip to content

Serialization: use a camel-case ContractResolver or similar #42

Description

@kavorite

Currently the diverging naming conventions of our frontend code and the API payloads is bridged by littering Types.fs with [<JsonProperty>] pragmas. This approach is error-prone and fails to leverage the full available API surface of NewtonSoft. One future aim should be to refactor the serialization pipeline in Json.fs to reduce this error by automatically translating the most common mapping, i.e. messageId to message_id, as well as kind to type as we have been to avoid keyword conflicts, automatically.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions