serde-yaml icon indicating copy to clipboard operation
serde-yaml copied to clipboard

Strongly typed YAML library for Rust

Results 58 serde-yaml issues
Sort by recently updated
recently updated
newest added

I have an `Endpoint` struct following the codes below: ```rust #[derive(Debug, Default, Clone, PartialEq, Eq, Serialize, Deserialize, Hash)] pub struct ClientTLS { pub crt: Option, pub key: Option, pub sni:...

### Issue Description: When using serde_yaml for deserialization, strings within YAML files lose their quotes (which we can tell is ok). However, during serialization, manually adding quotes to a string...

From what I can tell, `[!tag]` is supposed to be valid syntax. However, trying to parse it, we get ``` Error { kind: SCANNER, problem: "did not find expected whitespace...

Hi, I'm having trouble de-serializing i128 when it is in a tagged enum. Here's a MWE of the bug. Any ideas why this might happen? Am I doing something wrong?...

I was unconvinced that `serde_yaml`'s deserializer was handling untagged enums correctly, but it appears that it is.

The current implementation of `Iterator` for `Deserializer` created by `from_reader` constructor is eager. Upon calling `next()` for the first time, it uses Loader to load all the contents via `read_to_end()`...

❤️ First off, serde is amazing. :) I'm using `serde_yaml::to_writer()` to dump a struct to a yaml file. In the struct I have `tmdb_genre: Vec` which outputs like this: ```...

## TL;DR If you create an enum that contains a newtype variant, wrap the enum in a struct, wrap the said struct in another struct and use `#[serde(flatten)]` on it,...

I am using https://github.com/juhaku/utoipa 's [`to_yaml`](https://github.com/juhaku/utoipa/blob/3180d18f38723a91f70cea8ad439dc98855a3777/utoipa/src/openapi.rs#L158) which uses `serde_yaml::to_string`, to generate a [openapi 3 yaml file](https://spec.openapis.org/oas/latest.html), and there is a lack of typical indentation in the output of arrays/sequences. e.g....

In the following example the first struct deserializes , but the second one fails with "invalid type: integer `42`, expected a string". ```rust use serde::Deserialize; #[derive(Deserialize)] struct Inner { x:...