Skip to content

Commit

Permalink
(De)serialize status field as lowercase in writer::Json (#335)
Browse files Browse the repository at this point in the history
Co-authored-by: Kai Ren <tyranron@gmail.com>
  • Loading branch information
fluxxone and tyranron authored Jun 16, 2024
1 parent 9dc41ca commit 3b526f2
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 77 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ All user visible changes to `cucumber` crate will be documented in this file. Th



## [0.21.1] · 2024-06-?? (unreleased)
[0.21.1]: /../../tree/v0.21.1

[Diff](/../../compare/v0.21.0...v0.21.1)

### Fixed

- Wrong case of statuses reported in `writer::Json`. ([#335])

[#335]: /../../pull/335




## [0.21.0] · 2024-04-22
[0.21.0]: /../../tree/v0.21.0

Expand Down
1 change: 1 addition & 0 deletions src/writer/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ pub struct Tag {

/// Possible statuses of running [`gherkin::Step`].
#[derive(Clone, Copy, Debug, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum Status {
/// [`event::Step::Passed`].
Passed,
Expand Down
Loading

0 comments on commit 3b526f2

Please sign in to comment.