Open
Description
Add support for dictionaries as propertyNames
.
Input
components:
schema:
MyObject:
type: object
propertyNames:
type: string
enum:
- foo
- bar
additionalProperties:
type: string
Actual output:
export interface MyObject {
[key: string]: string
}
Expected output:
export interface MyObject {
[key: 'foo' | 'bar']: string
}
or const
/enum
equivalent depending on enumGenerationType
config.
Context
Orval version: 7.10.0