Olivier Pinon

Results 23 comments of Olivier Pinon

This is something that works at least for my test case above : ```go // UnmarshalJSON decodes Option from json. func (o *Option[T]) UnmarshalJSON(b []byte) error { if bytes.Equal([]byte("null"), b)...

Looks cool! Although I have to say this breaks a lot with the current `nutype` philosophy. Right now, `nutype` supports e.g. the following attribute : `validate(not_empty, len_char_max = 20)`, which...

`serde_json` serializes it as `"A"` for sure, and as `"a"` if using e.g. `#[serde(rename_all = "camelCase")]`, but I see that adding the rename to MyEnum changes it to `Content::UnitVariant("MyEnum", 0,...