Skip to content

Commit 25d7a6a

Browse files
committed
Fix Cloud service
git ignore openapi in golem-client and golem-cloud-client Fix swagger binding handler license Improve api_oas_convert.rs
1 parent 0a7aba4 commit 25d7a6a

File tree

7 files changed

+102
-130
lines changed

7 files changed

+102
-130
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ test-components/csharp-1/bin/
1616
test-components/csharp-1/obj/
1717
test-components/python-1/__pycache__/
1818
test-components/tinygo-wasi*/tinygo_wasi/
19-
golem-client/*
20-
!golem-client/Cargo.toml
21-
!golem-client/build.rs
19+
golem-client/openapi/
20+
golem-cloud-client/openapi/
2221
logs
2322
data
2423
.DS_Store

Cargo.lock

Lines changed: 64 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

golem-worker-service-base/src/api/custom_http_request.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ use crate::gateway_execution::swagger_binding_handler::DefaultSwaggerBindingHand
2727
use crate::gateway_execution::GatewayWorkerRequestExecutor;
2828
use crate::gateway_rib_interpreter::DefaultRibInterpreter;
2929
use crate::gateway_security::DefaultIdentityProvider;
30-
use crate::service::gateway::api_definition::ApiDefinitionService;
3130
use futures_util::FutureExt;
32-
use golem_service_base::auth::EmptyAuthCtx;
3331
use poem::{Endpoint, Request, Response};
3432

3533
pub struct CustomHttpRequestApi {
@@ -45,9 +43,6 @@ impl CustomHttpRequestApi {
4543
file_server_binding_handler: Arc<dyn FileServerBindingHandler<Namespace> + Sync + Send>,
4644
http_handler_binding_handler: Arc<dyn HttpHandlerBindingHandler<Namespace> + Sync + Send>,
4745
gateway_session_store: Arc<dyn GatewaySession + Sync + Send>,
48-
definition_service: Option<
49-
Arc<dyn ApiDefinitionService<EmptyAuthCtx, Namespace> + Sync + Send>,
50-
>,
5146
) -> Self {
5247
let evaluator = Arc::new(DefaultRibInterpreter::from_worker_request_executor(
5348
worker_request_executor_service.clone(),
@@ -66,7 +61,7 @@ impl CustomHttpRequestApi {
6661
api_definition_lookup_service,
6762
gateway_session_store,
6863
identity_provider: Arc::new(DefaultIdentityProvider),
69-
definition_service,
64+
definition_service: None,
7065
});
7166

7267
Self {

0 commit comments

Comments
 (0)