Skip to content

Commit d906f87

Browse files
Fix syntax: replace curly braces with square brackets in hosted service definitions
1 parent f843c88 commit d906f87

File tree

1 file changed

+7
-7
lines changed
  • showcases/data/Lambda/Activator - Hosted service

1 file changed

+7
-7
lines changed

showcases/data/Lambda/Activator - Hosted service/code.pure

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function model::processData(data: String[1]): String[1]
1515
HostedService model::BasicHostedService
1616
{
1717
pattern: '/api/greet/{name}';
18-
ownership: UserList { users: ['user1', 'user2'] };
18+
ownership: UserList [ users: ['user1', 'user2'] ];
1919
function: model::greet(String[1]):String[1];
2020
documentation: 'A simple hosted service that greets users by name';
2121
autoActivateUpdates: true;
@@ -25,7 +25,7 @@ HostedService model::BasicHostedService
2525
HostedService <<meta::pure::profiles::doc.doc>> {doc.doc='Example with deployment ownership'} model::DeploymentHostedService
2626
{
2727
pattern: '/api/process/{data}';
28-
ownership: Deployment { identifier: '12345' };
28+
ownership: Deployment [ identifier: '12345' ];
2929
function: model::processData(String[1]):String[1];
3030
documentation: 'A hosted service that processes data with deployment ownership';
3131
autoActivateUpdates: false;
@@ -35,16 +35,16 @@ HostedService <<meta::pure::profiles::doc.doc>> {doc.doc='Example with deploymen
3535
HostedService model::AdvancedHostedService
3636
{
3737
pattern: '/api/advanced/{param}';
38-
ownership: UserList { users: ['admin'] };
38+
ownership: UserList [ users: ['admin'] ];
3939
function: model::processData(String[1]):String[1];
4040
documentation: 'Advanced hosted service with post-deployment actions';
4141
autoActivateUpdates: true;
4242
actions:
43-
{
43+
[
4444
SlackNotify
45-
{
45+
[
4646
channel: '#deployments';
4747
message: 'Hosted service has been deployed';
48-
}
49-
}
48+
]
49+
]
5050
}

0 commit comments

Comments
 (0)