mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
revert: fix(core): add validation for all the connector auth_type (#1833)
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user