src/api_schema/schema.rs: improve docu

This commit is contained in:
Dietmar Maurer 2019-02-17 12:13:06 +01:00
parent 51ebd07974
commit 54d15ab5c5
1 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,14 @@ pub struct ParameterError {
error_list: Vec<Error>, error_list: Vec<Error>,
} }
/// Error type for schema validation
///
/// The validation functions may produce several error message,
/// i.e. when validation objects, it can produce one message for each
/// erroneous object property.
// fixme: record parameter names, to make it usefull to display errord
// on HTML forms.
impl ParameterError { impl ParameterError {
pub fn new() -> Self { pub fn new() -> Self {