forked from loafle/openapi-generator-original
Fix TypeScript Map type
This commit is contained in:
parent
3f9b2a9678
commit
b0f6b49595
@ -121,9 +121,7 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
|
||||
} else if (p instanceof MapProperty) {
|
||||
MapProperty mp = (MapProperty) p;
|
||||
Property inner = mp.getAdditionalProperties();
|
||||
|
||||
return getSwaggerType(p) + "<String, " + getTypeDeclaration(inner)
|
||||
+ ">";
|
||||
return "{ [key: string]: "+ getTypeDeclaration(inner) + "; }";
|
||||
}
|
||||
return super.getTypeDeclaration(p);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user