dfinity / dfinity/candid

Support serde rename_all

Open
#66 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Rust
Dominant language
Rust
Stars
301
Forks
85
Avg merge
1h 4m
Merged PRs (30d)
4

Description

#[serde(rename_all = "snake_case")]
pub enum CanisterStatusType {
    Running,
    Stopping,
    Stopped,
}

Discussed https://github.com/dfinity-lab/dfinity/pull/4812

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the serde rename_all example in the issue and review the linked discussion in PR 4812. Determine the intended behavior for enum variant names, then verify that the Candid library supports the requested snake_case mapping and add coverage for the shown CanisterStatusType example.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.