Describe the bug
Using the conversion tool, inline enums for an array are not converted properly. I'd expected an enum definition, either inline definition, or as a separate type.
Reproduction
The following component schema
ChatCompletionModalities:
type: array
items:
type: string
enum:
- text
- audio
leads to the following TypeSpec
union ChatCompletionModalities {
null,
}
Which missing the enum values
tool version 1.3.0
Checklist
Describe the bug
Using the conversion tool, inline enums for an array are not converted properly. I'd expected an enum definition, either inline definition, or as a separate type.
Reproduction
The following component schema
leads to the following TypeSpec
Which missing the enum values
tool version 1.3.0
Checklist