Skip to content

Commit 94a6c11

Browse files
Fix hosted service syntax: match exact multi-line array format
1 parent 84a69a5 commit 94a6c11

File tree

1 file changed

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

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ function model::processData(data: String[1]): String[1]
1313
HostedService model::BasicHostedService
1414
{
1515
pattern : '/api/greet/{name}';
16-
ownership : UserList { users: ['user1', 'user2'] };
16+
ownership : UserList { users: [
17+
'user1',
18+
'user2'
19+
] };
1720
function : model::greet(String[1]):String[1];
1821
documentation : 'A simple hosted service';
1922
autoActivateUpdates : true;
@@ -31,7 +34,9 @@ HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deploym
3134
HostedService model::AdvancedHostedService
3235
{
3336
pattern : '/api/advanced/{param}';
34-
ownership : UserList { users: ['admin'] };
37+
ownership : UserList { users: [
38+
'admin'
39+
] };
3540
function : model::processData(String[1]):String[1];
3641
documentation : 'Advanced hosted service';
3742
autoActivateUpdates : true;

0 commit comments

Comments
 (0)