schemars icon indicating copy to clipboard operation
schemars copied to clipboard

Support serde_valid

Open ya7010 opened this issue 1 year ago • 2 comments

Thanks for the great crate!!

Hi. I am the author of serde_valid.

schemars provides macros that are written equivalent to validator, but is it possible to support serde_valid?

serde_valid has the following advantages over validator:

  • Based on JsonSchema
  • Support for struct and enum
  • More friendly and simple interface

I am considering making attributes support for validator (and serde_valid ) into features.

I can also help with implementation, are you interested?

ya7010 avatar Jan 06 '25 13:01 ya7010

This would be great to have since validator appears to be unable to support validation during deserialization (see here) and it's super easy to forget calling validate. Is there any news on this issue?

JuliDi avatar Jul 18 '25 10:07 JuliDi

I also would love to see this and can also help with implementation.

joelsa avatar Jul 21 '25 15:07 joelsa