Skip to content

Commit 8def2cb

Browse files
committed
update comments
1 parent 345d0f3 commit 8def2cb

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,13 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
386386
List<CodegenOperation> operationList = operations.getOperation();
387387

388388
for (CodegenOperation op : operationList) {
389-
// Per-parameter: enum $ref fixes (normalizeEnumRefParameterDataType → syncEnumRefOperationImports),
390-
// then x-parameter-type / x-comment-type. Aggregated Api imports are rebuilt once afterward
391-
// (refreshAggregatedImportsForOperations).
389+
// Loop through all input parameters to determine, whether we have to import something to
390+
// make the input type available.
392391
for (CodegenParameter param : op.allParams) {
392+
// Enum-by-reference query params (e.g. OAS 3.1 dotted keys): normalize dataType and
393+
// sync this operation's imports (normalizeEnumRefParameterDataType →
394+
// syncEnumRefOperationImports). refreshAggregatedImportsForOperations runs once after
395+
// this inner loop to rebuild bundle-level Api imports for Mustache.
393396
normalizeEnumRefParameterDataType(op, param);
394397
// Determine if the parameter type is supported as a type hint and make it available
395398
// to the templating engine

0 commit comments

Comments
 (0)