Skip to content

Commit

Permalink
support Map schema in TS SDK README
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Oct 10, 2023
1 parent 9720ed6 commit c376587
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public String paramNameSnakeCase() {
public String jsonSchema;
public boolean isString, isNumeric, isInteger, isLong, isNumber, isFloat, isDouble, isDecimal, isByteArray, isBinary,
isBoolean, isDate, isDateTime, isUuid, isUri, isEmail, isFreeFormObject, isAnyType, isShort, isUnboundedInteger;
public boolean isArray, isMap;
public boolean isArray;
public boolean isMap;
public boolean isFile;
public boolean isEnum;
private boolean additionalPropertiesIsAnyType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7191,6 +7191,7 @@ public CodegenParameter fromFormProperty(String name, Schema propertySchema, Set
if (ModelUtils.isFreeFormObject(openAPI, ps)) {
codegenParameter.isFreeFormObject = true;
}
codegenParameter.items = codegenProperty.items;
} else if (ModelUtils.isNullType(ps)) {
;
} else if (ModelUtils.isAnyType(ps)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{#isFreeFormObject}}
`{{{dataType}}}`
{{/isFreeFormObject}}
{{#isMap}}
{{^isFreeFormObject}}
{{^isModel}}
{{#items}}
Record<string, {{> api_doc_param_data_type}}>
{{/items}}
{{/isModel}}
{{/isFreeFormObject}}
{{/isMap}}
{{#isPrimitiveType}}
`{{{dataType}}}`
{{/isPrimitiveType}}
Expand Down

0 comments on commit c376587

Please sign in to comment.