forked from loafle/openapi-generator-original
[Elm] Bugfix .encode in modelTypeDiscriminator (#2807)
The function is called `encode`. This fixed the call.
See dfa7e616c0/modules/openapi-generator/src/main/resources/elm/modelTypeArray.mustache (L11)
This commit is contained in:
@@ -27,6 +27,6 @@ encode model =
|
||||
case model of
|
||||
{{#mappedModels}}
|
||||
{{modelName}}Type subModel ->
|
||||
{{modelName}}.encoder "{{mappingName}}" subModel
|
||||
{{modelName}}.encode "{{mappingName}}" subModel
|
||||
|
||||
{{/mappedModels}}
|
||||
|
||||
Reference in New Issue
Block a user