1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-06-10 10:50:20 +00:00

fix(viya): stringify JES job arguments + sasjs-tests fixes

This commit is contained in:
mulahasanovic
2026-05-05 14:47:10 +02:00
parent 7a130e129f
commit a38548d8de
3 changed files with 50 additions and 6 deletions
+7 -1
View File
@@ -1031,11 +1031,17 @@ export class SASViyaApiClient {
jobArguments[`_webin_name${index + 1}`] = fileInfo.tableName
})
// Viya JES requires arguments to be Map<String,String>; coerce booleans/numbers.
const stringifiedArguments: { [key: string]: string } = {}
for (const k of Object.keys(jobArguments)) {
stringifiedArguments[k] = String(jobArguments[k])
}
const postJobRequestBody = {
name: `exec-${jobName}`,
description: 'Powered by SASjs',
jobDefinition,
arguments: jobArguments
arguments: stringifiedArguments
}
const { result: postedJob } = await this.requestClient.post<Job>(