forked from loafle/openapi-generator-original
* [elm] fix empty operation exception (#3256) * [haskell-servant] fix empty operation type (#3256) * [elm][haskell-servant] update samples
19 lines
278 B
Elm
19 lines
278 B
Elm
module Byte exposing (Byte, decoder, encode)
|
|
|
|
import Json.Decode as Decode exposing (Decoder)
|
|
import Json.Encode as Encode
|
|
|
|
|
|
type alias Byte =
|
|
String
|
|
|
|
|
|
decoder : Decoder Byte
|
|
decoder =
|
|
Decode.string
|
|
|
|
|
|
encode : Byte -> Encode.Value
|
|
encode model =
|
|
Encode.string model
|