Skip to content

Commit c71f50c

Browse files
committed
refactor: Rename agent parameters computation method for clarity
- Updated the method name from _computeAgentParameters to _computeAgentParametersByMethod for better readability. - Adjusted the parameter object to use isUserInput instead of isInputEnabled for improved clarity in the context of user input handling.
1 parent e207548 commit c71f50c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ApiMethodDocumentation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
473473
this.operationId = this._getValue(method, this.ns.aml.vocabularies.apiContract.operationId);
474474
this.callbacks = this._computeCallbacks(method);
475475
this.deprecated = this._computeIsDeprecated(method);
476-
this.agentParameters = this._computeAgentParameters(method);
476+
this.agentParameters = this._computeAgentParametersByMethod(method);
477477
}
478478

479479
_computeAsyncApiSecurity(){
@@ -1387,7 +1387,7 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
13871387
return undefined;
13881388
}
13891389

1390-
_computeAgentParameters(method) {
1390+
_computeAgentParametersByMethod(method) {
13911391
if (!method) {
13921392
return undefined;
13931393
}
@@ -1421,10 +1421,10 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
14211421
if (!isUserInput) {
14221422
return undefined;
14231423
}
1424-
const isInputEnabled = this._getValue(isUserInput[0], this.ns.aml.vocabularies.data.value);
1424+
const isInputValue = this._getValue(isUserInput[0], this.ns.aml.vocabularies.data.value);
14251425

14261426
const params = {
1427-
isInputEnabled,
1427+
isUserInput: isInputValue,
14281428
};
14291429

14301430
return params;

0 commit comments

Comments
 (0)