Closed mrkpks closed 6 years ago
Properties with additionalProperties should be generated as the keymap
additionalProperties
Example INPUT:
myInterface: type: "object" properties: myName: type: "string" myId: type: "string" myMap: type: "object" additionalProperties: $ref: "#/definitions/someOtherInterface"
OUTPUT:
export interface MyInterface { myName: string; myId: string; myMap: {[key: string]: SomeOtherInterface}; }
Properties with
additionalProperties
should be generated as the keymapExample INPUT:
OUTPUT: