1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-14 09:20:06 +00:00

chore: docs bug fixed

This commit is contained in:
Saad Jutt
2021-11-13 00:41:02 +05:00
parent cd738aa4b8
commit cfdb67a049
5 changed files with 9 additions and 4 deletions

View File

@@ -27,6 +27,11 @@
"public/**/*", "public/**/*",
"../web/build/**/*" "../web/build/**/*"
], ],
"targets": [
"node16-linux-x64",
"node16-macos-x64",
"node16-win-x64"
],
"outputPath": "../../executables" "outputPath": "../../executables"
}, },
"release": { "release": {

View File

@@ -937,7 +937,7 @@ paths:
format: double format: double
type: number type: number
example: '6789' example: '6789'
/SASjsApi/client/execute: /SASjsApi/stp/execute:
get: get:
operationId: ExecuteReturnRaw operationId: ExecuteReturnRaw
responses: responses:

View File

@@ -32,7 +32,7 @@ export class SessionController {
private async createSession() { private async createSession() {
const sessionId = generateUniqueFileName(generateTimestamp()) const sessionId = generateUniqueFileName(generateTimestamp())
const sessionFolder = path.join(await getTmpSessionsFolderPath(), sessionId) const sessionFolder = path.join(getTmpSessionsFolderPath(), sessionId)
const autoExecContent = `data _null_; const autoExecContent = `data _null_;
/* remove the dummy SYSIN */ /* remove the dummy SYSIN */

View File

@@ -30,7 +30,7 @@ interface ExecuteReturnJsonResponse {
} }
@Security('bearerAuth') @Security('bearerAuth')
@Route('SASjsApi/client') @Route('SASjsApi/stp')
@Tags('STP') @Tags('STP')
export class STPController { export class STPController {
/** /**

View File

@@ -79,7 +79,7 @@ export const updateFileDriveValidation = (data: any): Joi.ValidationResult =>
export const executeProgramRawValidation = (data: any): Joi.ValidationResult => export const executeProgramRawValidation = (data: any): Joi.ValidationResult =>
Joi.object({ Joi.object({
_program: Joi.string().required _program: Joi.string().required()
}) })
.pattern(/\w\d/, Joi.string()) .pattern(/\w\d/, Joi.string())
.validate(data) .validate(data)