Skip to content

Commit 9024476

Browse files
akoclaude
andcommitted
fix: update odata example to use constant reference for ServiceUrl
ServiceUrl must be a constant reference (@Module.Const), not a string literal. Added OdTest.FullConfigAPIServiceUrl constant and updated the example to reference it, matching the new CE6825 validation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9eae3af commit 9024476

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mdl-examples/doctype-tests/10-odata-examples.mdl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,18 @@ DEFAULT 'proxy.example.com';
228228
CREATE CONSTANT OdTest.ProxyPortConst
229229
TYPE String
230230
DEFAULT '8080';
231+
232+
CREATE CONSTANT OdTest.FullConfigAPIServiceUrl
233+
TYPE String
234+
DEFAULT 'https://api.example.com/odata/v4';
231235
/
232236

233237
CREATE ODATA CLIENT OdTest.FullConfigAPI (
234238
Version: '3.0',
235239
ODataVersion: OData4,
236240
MetadataUrl: 'https://api.example.com/odata/v4/$metadata',
237241
Timeout: 300,
238-
ServiceUrl: 'https://api.example.com/odata/v4',
242+
ServiceUrl: @OdTest.FullConfigAPIServiceUrl,
239243
UseAuthentication: Yes,
240244
HttpUsername: 'admin',
241245
HttpPassword: 'secret',

0 commit comments

Comments
 (0)