Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[elm] Fix Byte encoder/decoder names
  • Loading branch information
eriktim committed Oct 1, 2018
commit be326a4049e44311c4a400168e89586cc210feed
10 changes: 5 additions & 5 deletions modules/openapi-generator/src/main/resources/elm/Byte.mustache
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Byte exposing (Byte, byteDecoder, byteEncoder)
module Byte exposing (Byte, decoder, encoder)

import Json.Decode as Decode exposing (Decoder)
import Json.Encode as Encode
Expand All @@ -8,11 +8,11 @@ type alias Byte =
String


byteDecoder : Decoder Byte
byteDecoder =
decoder : Decoder Byte
decoder =
Decode.string


byteEncoder : Byte -> Encode.Value
byteEncoder model =
encoder : Byte -> Encode.Value
encoder model =
Encode.string model
10 changes: 5 additions & 5 deletions samples/client/petstore/elm-0.18/src/Byte.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Byte exposing (Byte, byteDecoder, byteEncoder)
module Byte exposing (Byte, decoder, encoder)

import Json.Decode as Decode exposing (Decoder)
import Json.Encode as Encode
Expand All @@ -8,11 +8,11 @@ type alias Byte =
String


byteDecoder : Decoder Byte
byteDecoder =
decoder : Decoder Byte
decoder =
Decode.string


byteEncoder : Byte -> Encode.Value
byteEncoder model =
encoder : Byte -> Encode.Value
encoder model =
Encode.string model
10 changes: 5 additions & 5 deletions samples/client/petstore/elm/src/Byte.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Byte exposing (Byte, byteDecoder, byteEncoder)
module Byte exposing (Byte, decoder, encoder)

import Json.Decode as Decode exposing (Decoder)
import Json.Encode as Encode
Expand All @@ -8,11 +8,11 @@ type alias Byte =
String


byteDecoder : Decoder Byte
byteDecoder =
decoder : Decoder Byte
decoder =
Decode.string


byteEncoder : Byte -> Encode.Value
byteEncoder model =
encoder : Byte -> Encode.Value
encoder model =
Encode.string model