-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Describe the bug
{"type": "object", "additionalProperties": ...} is not converted to elm Dict type
To Reproduce
Given this openapi spec:
"components": {
"schemas": {
"thing": {
"required": [
"dict"
],
"type": "object",
"properties": {
"dict": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"title": "Value"
}
}
}
}
},
"title": "Thing"
}
}
},
"openapi": "3.1.0",
"servers": [
],
"info": {
"title": "API",
"version": "1.0.0",
"description": ""
}
}
the generator produces:
type alias Thing =
{ dict : {} }Expected output is:
type alias Thing =
{ dict : Dict String { value : Int } }See: https://swagger.io/docs/specification/v3_0/data-models/dictionaries/?sbsearch=additionalproperties
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels