jonasbb / serde_with

This crate provides custom de/serialization helpers to use in combination with serde's `with`-annotation and with the improved `serde_as`-annotation.
https://docs.rs/serde_with
Apache License 2.0
667 stars 72 forks source link

Generated schemas are not valid when using Rust style names in ref #798

Open waltronix opened 3 weeks ago

waltronix commented 3 weeks ago

Not all generated schemas are valid. Especially when using the Rust style names with <, >, or , for schema name generation it breaks schema validation.

I suggest to add a validation check to declare_snapshot_test and then change the generated names #799

waltronix commented 3 weeks ago

The problem does not come from the , itself, but from the space after it.