Skip to content

Commit

Permalink
[typescript] fix: allow 'additionalProperties: true' at top level (#1…
Browse files Browse the repository at this point in the history
…6526)

* fix: allow 'additionalProperties: true' at top level

* refactor: use same call as other typescript generators
  • Loading branch information
tcrasset authored Sep 8, 2023
1 parent dee536f commit 005566c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public String getTypeDeclaration(Schema p) {

@Override
protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Schema schema) {
codegenModel.additionalPropertiesType = getTypeDeclaration((Schema) schema.getAdditionalProperties());
codegenModel.additionalPropertiesType = getSchemaType(ModelUtils.getAdditionalProperties(schema));
addImport(codegenModel, codegenModel.additionalPropertiesType);
}

Expand Down

0 comments on commit 005566c

Please sign in to comment.