restify-openapi 0.0.1

STILL WIP
Documentation
1
2
3
4
5
6
7
8
9
use crate::paths::Response;
use crate::reference_or::ReferenceOr;
use crate::Schema;
use std::collections::BTreeMap;

pub trait ApiErrorComponent {
  fn schemas_by_status_code() -> BTreeMap<String, (String, ReferenceOr<Schema>)>;
  fn error_responses() -> Vec<(String, Response)>;
}