Skip to content

Commit

Permalink
fix(go): compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Oct 1, 2024
1 parent 734523d commit a796ccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/go/models/model.go.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
import (
"encoding/json"
"errors"
{%~ if definition.name | caseLower == 'execution' or definition.name | caseLower == 'multipart' %}
{%~ if definition.name | caseLower == 'execution' or definition.name | caseLower == 'multipart' or definition.name | caseLower == 'multipartecho' %}
"github.com/{{sdk.gitUserName}}/sdk-for-go/payload"
{%~ endif %}
)
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@
"200": {
"description": "Multipart echo",
"schema": {
"$ref": "#\/definitions\/multipart-echo"
"$ref": "#\/definitions\/multipartEcho"
}
}
},
Expand Down Expand Up @@ -2176,7 +2176,7 @@
"responseBody"
]
},
"multipart-echo": {
"multipartEcho": {
"description": "Multipart echo",
"type": "object",
"properties": {
Expand Down

0 comments on commit a796ccc

Please sign in to comment.