Closed victor-soloviev closed 4 years ago
#[derive(Default, PartialEq, Debug, UtilsTupleSerDe)]
pub struct ContentType (pub String);
impl Validate for ContentType {
fn validate(&self) -> Result<(), String> {
if self.0.len() < "3".parse().unwrap() {
return Err(format!("MinLength validation error. \nExpected: 0 length >= 3 \nActual: 0 length == {}", self.0.len()));
}
Ok(())
}
}
pub type ExpectedContentTypes = String;
xs:schema
may have attributes within itself.xmlmime.xsd
:Current state of generated code for this case: