Skip to content

Conversation

@zignis
Copy link

@zignis zignis commented Nov 19, 2023

PR Type

Bug Fix

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the nightly rustfmt (cargo +nightly fmt).

Overview

Replaces the usage of HashMap in session with serde Map, which solves the issue of double-serialization of values when inserting data into the session state.

Closes #308

@0rangeFox
Copy link
Contributor

Hey 👋. I'm experiencing this issue, can I participate on this PR to be merged asap? At this moment I have a messy workaround and this would simplify the logic and clear my messy code just for this.

@robjtede robjtede added A-session Project: actix-session B-semver-major breaking change requiring a major version bump labels Jun 9, 2024
willothy added a commit to willothy/actix-extras that referenced this pull request Nov 19, 2024
Use `serde_json::Map<String, serde_json::Value>` instead of
`HashMap<String, String>`. Has the added benefit of fully type-safe json
storage in sessions.

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

Labels

A-session Project: actix-session B-semver-major breaking change requiring a major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Actix session insert should check for string

3 participants