Open paztis opened 2 years ago
Problem came from schema.js file
if (additionalProperties === true) {
propertiesContent.push({
$$raw: { additionalProperties },
description: "",
isRequired: false,
field: `[key: ${TS_KEYWORDS.STRING}]: ${TS_KEYWORDS.ANY}`,
});
}
return propertiesContent;
It seams you only support the additionalProperties: true case, not the others
Is this module still supported ? I didn't see any activity since few months
Hello @paztis , this problem will be fixed in next release
In swagger 2, additionalProperties are very limited. They didn't support the true and {} values. To replace this they define it like this
It works only because in java like words String, Boolean and Numbers are Objects
in swagger 2, it must be transpiled in
but for now it is transpiled in
result is the same If I try to transpile below code
The only case the correctly works is
Swagger file is correctly converted with Swager.io typescript generators
Is it possible to fix it ?