Add OpenAPI docs
This commit is contained in:
parent
53f1a3dcc6
commit
d5a5367e1e
5 changed files with 51 additions and 20 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use aide::OperationOutput;
|
||||
use axum::{
|
||||
http::StatusCode,
|
||||
response::{IntoResponse, Response},
|
||||
|
|
@ -36,6 +37,10 @@ impl IntoResponse for SyncServerError {
|
|||
}
|
||||
}
|
||||
|
||||
impl OperationOutput for SyncServerError {
|
||||
type Inner = Self;
|
||||
}
|
||||
|
||||
pub fn init_error(error: anyhow::Error) -> SyncServerError {
|
||||
SyncServerError::InitError(error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue