vovk 3.0.0-draft.401 → 3.0.0-draft.402
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -284,7 +284,7 @@ function createCodeExamples({ handlerName, handlerSchema, controllerSchema, pack
|
|
|
284
284
|
const paramsValidation = handlerSchema?.validation?.params;
|
|
285
285
|
const outputValidation = handlerSchema?.validation?.output;
|
|
286
286
|
const iterationValidation = handlerSchema?.validation?.iteration;
|
|
287
|
-
const hasArg = !!queryValidation || !!bodyValidation || !!paramsValidation;
|
|
287
|
+
const hasArg = !!queryValidation || !!bodyValidation || !!paramsValidation || !!config?.apiRoot || !!config?.headers;
|
|
288
288
|
const rpcName = controllerSchema.rpcModuleName;
|
|
289
289
|
const packageName = packageJson?.name || 'vovk-client';
|
|
290
290
|
const packageNameSnake = toSnakeCase(packageName);
|
|
@@ -284,7 +284,7 @@ function createCodeExamples({ handlerName, handlerSchema, controllerSchema, pack
|
|
|
284
284
|
const paramsValidation = handlerSchema?.validation?.params;
|
|
285
285
|
const outputValidation = handlerSchema?.validation?.output;
|
|
286
286
|
const iterationValidation = handlerSchema?.validation?.iteration;
|
|
287
|
-
const hasArg = !!queryValidation || !!bodyValidation || !!paramsValidation;
|
|
287
|
+
const hasArg = !!queryValidation || !!bodyValidation || !!paramsValidation || !!config?.apiRoot || !!config?.headers;
|
|
288
288
|
const rpcName = controllerSchema.rpcModuleName;
|
|
289
289
|
const packageName = packageJson?.name || 'vovk-client';
|
|
290
290
|
const packageNameSnake = toSnakeCase(packageName);
|