From e2f75e6b9bf504d01bbf42c4fba138f7fc893dd8 Mon Sep 17 00:00:00 2001 From: antonWetzel Date: Thu, 10 Aug 2023 08:47:42 +0200 Subject: [PATCH] fix case for DataAnnotation --- CHANGELOG.md | 6 ++++++ src/lib/check.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index feacfce..98ba79c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unrealeased](https://github.com/jeertmans/languagetool-rust/compare/v2.1.3...HEAD) + +### Fixed + +- Fixed serializing of `interpretAs` in `data`. [#103](https://github.com/jeertmans/languagetool-rust/pull/103) + ## [2.1.3](https://github.com/jeertmans/languagetool-rust/compare/v2.1.2...v2.1.3) ### Chore diff --git a/src/lib/check.rs b/src/lib/check.rs index 0afeb0d..12bd2d9 100644 --- a/src/lib/check.rs +++ b/src/lib/check.rs @@ -123,6 +123,7 @@ where #[derive(Clone, Debug, Deserialize, PartialEq, Eq, Serialize)] #[non_exhaustive] +#[serde(rename_all = "camelCase")] /// A portion of text to be checked. pub struct DataAnnotation { /// If set, the markup will be interpreted as this.