diff --git a/.sage/go.mod b/.sage/go.mod index 6aac90b..6e066c9 100644 --- a/.sage/go.mod +++ b/.sage/go.mod @@ -2,4 +2,4 @@ module sage go 1.17 -require go.einride.tech/sage v0.182.0 +require go.einride.tech/sage v0.196.0 diff --git a/.sage/go.sum b/.sage/go.sum index 152deaf..ed528e4 100644 --- a/.sage/go.sum +++ b/.sage/go.sum @@ -1,2 +1,2 @@ -go.einride.tech/sage v0.182.0 h1:yvTDktPO1DkTVgxtVkHBoqRM8RAFJVD4RqM8W74vHNc= -go.einride.tech/sage v0.182.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ= +go.einride.tech/sage v0.196.0 h1:rGrIWUcuVAnj/dsZEcR7ycACChXempSxrslar+6SKNY= +go.einride.tech/sage v0.196.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ= diff --git a/example/proto/einride/example/account/v1/account_service.proto b/example/proto/einride/example/account/v1/account_service.proto index 4c58275..8c13795 100644 --- a/example/proto/einride/example/account/v1/account_service.proto +++ b/example/proto/einride/example/account/v1/account_service.proto @@ -17,18 +17,14 @@ service AccountService { // Get a tenant. // See: https://google.aip.dev/131 (Standard methods: Get). rpc GetTenant(GetTenantRequest) returns (Tenant) { - option (google.api.http) = { - get: "/v1/{name=tenants/*}" - }; + option (google.api.http) = {get: "/v1/{name=tenants/*}"}; option (google.api.method_signature) = "name"; } // List tenants. // See: https://google.aip.dev/132 (Standard methods: List). rpc ListTenants(ListTenantsRequest) returns (ListTenantsResponse) { - option (google.api.http) = { - get: "/v1/tenants" - }; + option (google.api.http) = {get: "/v1/tenants"}; } // Create a tenant. @@ -55,27 +51,21 @@ service AccountService { // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). rpc DeleteTenant(DeleteTenantRequest) returns (Tenant) { - option (google.api.http) = { - delete: "/v1/{name=tenants/*}" - }; + option (google.api.http) = {delete: "/v1/{name=tenants/*}"}; option (google.api.method_signature) = "name"; } // Get a user. // See: https://google.aip.dev/131 (Standard methods: Get). rpc GetUser(GetUserRequest) returns (User) { - option (google.api.http) = { - get: "/v1/{name=tenants/*/users/*}" - }; + option (google.api.http) = {get: "/v1/{name=tenants/*/users/*}"}; option (google.api.method_signature) = "name"; } // List users for a tenant. // See: https://google.aip.dev/132 (Standard methods: List). rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) { - option (google.api.http) = { - get: "/v1/{parent=tenants/*}/users" - }; + option (google.api.http) = {get: "/v1/{parent=tenants/*}/users"}; option (google.api.method_signature) = "parent"; } @@ -103,9 +93,7 @@ service AccountService { // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). rpc DeleteUser(DeleteUserRequest) returns (User) { - option (google.api.http) = { - delete: "/v1/{name=tenants/*/users/*}" - }; + option (google.api.http) = {delete: "/v1/{name=tenants/*/users/*}"}; option (google.api.method_signature) = "name"; } } @@ -223,9 +211,7 @@ message CreateUserRequest { // Format: tenants/{tenant} string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "account-example.einride.tech/Tenant" - } + (google.api.resource_reference) = {child_type: "account-example.einride.tech/Tenant"} ]; // The user to create. User user = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/example/proto/einride/example/todo/v1/todo_service.proto b/example/proto/einride/example/todo/v1/todo_service.proto index 2f966f6..dc7f605 100644 --- a/example/proto/einride/example/todo/v1/todo_service.proto +++ b/example/proto/einride/example/todo/v1/todo_service.proto @@ -16,18 +16,14 @@ service TodoService { // Get a todo. // See: https://google.aip.dev/131 (Standard methods: Get). rpc GetTodo(GetTodoRequest) returns (Todo) { - option (google.api.http) = { - get: "/v1/{name=tenants/*/users/*/todo/*}" - }; + option (google.api.http) = {get: "/v1/{name=tenants/*/users/*/todo/*}"}; option (google.api.method_signature) = "name"; } // List todos. // See: https://google.aip.dev/132 (Standard methods: List). rpc ListTodos(ListTodosRequest) returns (ListTodosResponse) { - option (google.api.http) = { - get: "/v1/{parent=tenants/*/users/*}/todos" - }; + option (google.api.http) = {get: "/v1/{parent=tenants/*/users/*}/todos"}; } // Create a todo.