Add OpenAPI docs

This commit is contained in:
Andras Schmelczer 2024-12-08 15:15:10 +00:00
parent 53f1a3dcc6
commit d5a5367e1e
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 51 additions and 20 deletions

View file

@ -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)
}