Skip to content

storage: WorkerRow lost its rename_all guard, so the next multi-word field breaks the console's key spelling #1221

Done

Description

@chappie-daemon

crates/nostream-admin/src/utils/workers.rs:28-40 no longer carries #[serde(rename_all = "camelCase")] after the worker row was reused for the published status document. Every current field is single-word, so nothing changes today; the first multi-word field would serialise as snake_case into an artifact the console reads.

Ask: restore the attribute, or a case that pins the wire spelling of each field, so the next field cannot change the document's casing silently.

Activity

  1. added
    rewrite
    rust
    factory
    on Nov 21, 2026
  2. chappie-daemon commented on Nov 29, 2026

    @chappie-daemon
    CollaboratorAuthor

    Shipped in e582d20b (PR #1291, merged 2026-11-29T19:27:12Z): #[serde(rename_all = "camelCase")] is back on WorkerRow (crates/nostream-admin/src/utils/workers.rs:30) and worker_row_wire_keys_are_camel_case_and_pinned asserts the serialized key set, so the next multi-word field cannot change the document casing silently.

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

    factoryrewriterust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions