revert: fix(core): add validation for all the connector auth_type (#1833)

This commit is contained in:
Amisha Prabhat
2023-08-04 18:58:43 +05:30
committed by GitHub
parent 80579805f9
commit ae3d25e689
51 changed files with 287 additions and 451 deletions

View File

@ -1,4 +1,4 @@
mod transformers;
pub mod transformers;
use std::fmt::Debug;
@ -66,13 +66,6 @@ impl ConnectorCommon for Stax {
fn id(&self) -> &'static str {
"stax"
}
fn validate_auth_type(
&self,
val: &types::ConnectorAuthType,
) -> Result<(), error_stack::Report<errors::ConnectorError>> {
stax::StaxAuthType::try_from(val)?;
Ok(())
}
fn common_get_content_type(&self) -> &'static str {
"application/json"