Keats / validator

Simple validation for Rust structs
MIT License
1.91k stars 140 forks source link

how to parse collection type?? #324

Closed Jeffr-K closed 2 months ago

Jeffr-K commented 3 months ago

I want to collection type. it is implemented??

#[serde(rename = "configurationStages")]
#[validate(required)]
pub configuration_stages: Vec<HashMap<String, String>>,

#[serde(rename = "configurationAnnotations")]
#[validate(required)]
pub configuration_annotations: Vec<HashMap<String, String>>,
Keats commented 3 months ago

Well it's a vec so it's always going to be there, the required check is always going to pass