feat: implement rest vertical slice

This commit is contained in:
a.tolmachev
2026-03-25 18:28:44 +03:00
parent 649a2ede0d
commit 8a7e8dbd64
15 changed files with 1547 additions and 23 deletions
+19
View File
@@ -0,0 +1,19 @@
use mcpaas_adapter_rest::RestAdapterError;
use mcpaas_core::Protocol;
use mcpaas_mapping::MappingError;
use mcpaas_schema::SchemaError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum RuntimeError {
#[error(transparent)]
Schema(#[from] SchemaError),
#[error(transparent)]
Mapping(#[from] MappingError),
#[error(transparent)]
RestAdapter(#[from] RestAdapterError),
#[error("protocol {protocol:?} is not supported by runtime")]
UnsupportedProtocol { protocol: Protocol },
#[error("invalid prepared request: {details}")]
InvalidPreparedRequest { details: String },
}