feat: add soap core domain model
This commit is contained in:
@@ -1352,6 +1352,7 @@ impl AdminService {
|
||||
Protocol::Graphql,
|
||||
Protocol::Grpc,
|
||||
Protocol::Websocket,
|
||||
Protocol::Soap,
|
||||
]
|
||||
.into_iter()
|
||||
.map(protocol_capability_view)
|
||||
@@ -3607,6 +3608,7 @@ fn validate_protocol_target(protocol: Protocol, target: &Target) -> Result<(), A
|
||||
| (Protocol::Graphql, Target::Graphql(_))
|
||||
| (Protocol::Grpc, Target::Grpc(_))
|
||||
| (Protocol::Websocket, Target::Websocket(_))
|
||||
| (Protocol::Soap, Target::Soap(_))
|
||||
);
|
||||
|
||||
if is_match {
|
||||
@@ -3834,6 +3836,7 @@ fn demo_grpc_operation_payload() -> OperationPayload {
|
||||
protocol_options: Some(crank_core::ProtocolOptions {
|
||||
grpc: Some(crank_core::GrpcProtocolOptions { use_tls: false }),
|
||||
websocket: None,
|
||||
soap: None,
|
||||
}),
|
||||
streaming: None,
|
||||
},
|
||||
@@ -4044,6 +4047,7 @@ fn protocol_capability_view(protocol: Protocol) -> ProtocolCapabilityView {
|
||||
let supports_upload_artifacts = match protocol {
|
||||
Protocol::Rest | Protocol::Graphql | Protocol::Websocket => Vec::new(),
|
||||
Protocol::Grpc => vec!["proto".to_owned(), "descriptor_set".to_owned()],
|
||||
Protocol::Soap => vec!["wsdl".to_owned(), "xsd".to_owned()],
|
||||
};
|
||||
|
||||
ProtocolCapabilityView {
|
||||
|
||||
Reference in New Issue
Block a user