Skip to content

Commit b23050f

Browse files
Fix hosted service syntax: use properly escaped single quotes
1 parent 05e6f7b commit b23050f

File tree

1 file changed

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

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@
22
// Define a simple function to be used by our hosted service
33
function model::greet(name: String[1]): String[1]
44
{
5-
"Hello, " + $name + "! Welcome to the hosted service."
5+
'Hello, ' + $name + '! Welcome to the hosted service.'
66
}
77

88
function model::processData(data: String[1]): String[1]
99
{
10-
"Processed data: " + $data
10+
'Processed data: ' + $data
1111
}
1212

1313
###HostedService
1414
// Basic hosted service with UserList ownership
1515
HostedService model::BasicHostedService
1616
{
17-
pattern: "/api/greet/{name}";
17+
pattern: '/api/greet/{name}';
1818
ownership: UserList { users: [
19-
"user1",
20-
"user2"
19+
'user1',
20+
'user2'
2121
] };
2222
function: model::greet(String[1]):String[1];
23-
documentation: "A simple hosted service that greets users by name";
23+
documentation: 'A simple hosted service that greets users by name';
2424
autoActivateUpdates: true;
2525
}
2626

2727
// Hosted service with Deployment ownership and stereotypes
28-
HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = "Example with deployment ownership"} model::DeploymentHostedService
28+
HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deployment ownership'} model::DeploymentHostedService
2929
{
30-
pattern: "/api/process/{data}";
31-
ownership: Deployment { identifier: "12345" };
30+
pattern: '/api/process/{data}';
31+
ownership: Deployment { identifier: '12345' };
3232
function: model::processData(String[1]):String[1];
33-
documentation: "A hosted service that processes data with deployment ownership";
33+
documentation: 'A hosted service that processes data with deployment ownership';
3434
autoActivateUpdates: false;
3535
}
3636

3737
// Hosted service with post-deployment actions
3838
HostedService model::AdvancedHostedService
3939
{
40-
pattern: "/api/advanced/{param}";
40+
pattern: '/api/advanced/{param}';
4141
ownership: UserList { users: [
42-
"admin"
42+
'admin'
4343
] };
4444
function: model::processData(String[1]):String[1];
45-
documentation: "Advanced hosted service with post-deployment actions";
45+
documentation: 'Advanced hosted service with post-deployment actions';
4646
autoActivateUpdates: true;
4747
}

0 commit comments

Comments
 (0)