Test case
1 generated file · +2 −2test/inputs/json/misc/00c36.json
Melmdefault / QuickType.elm+2 −2
| @@ -71,7 +71,7 @@ optionalField key decoder fallback = | ||
| 71 | 71 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 72 | 72 | |
| 73 | 73 | quickType : Jdec.Decoder QuickType |
| 74 | -quickType = Jdec.list quickTypeUnion | |
| 74 | +quickType = Jdec.list quickTypeUnion | |
| 75 | 75 | |
| 76 | 76 | quickTypeToString : QuickType -> String |
| 77 | 77 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -79,7 +79,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 79 | 79 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 80 | 80 | quickTypeUnion = |
| 81 | 81 | Jdec.oneOf |
| 82 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 82 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 83 | 83 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 84 | 84 | ] |
Test case
1 generated file · +4 −4test/inputs/json/misc/00ec5.json
Melmdefault / QuickType.elm+4 −4
| @@ -124,8 +124,8 @@ quickType = | ||
| 124 | 124 | |> Jpipe.required "host" Jdec.string |
| 125 | 125 | |> Jpipe.required "info" info |
| 126 | 126 | |> Jpipe.required "paths" paths |
| 127 | - |> Jpipe.required "produces" (Jdec.list Jdec.string) | |
| 128 | - |> Jpipe.required "schemes" (Jdec.list Jdec.string) | |
| 127 | + |> Jpipe.required "produces" (Jdec.list Jdec.string ) | |
| 128 | + |> Jpipe.required "schemes" (Jdec.list Jdec.string ) | |
| 129 | 129 | |> Jpipe.required "swagger" Jdec.string |
| 130 | 130 | |
| 131 | 131 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -230,10 +230,10 @@ get : Jdec.Decoder Get | ||
| 230 | 230 | get = |
| 231 | 231 | Jdec.succeed Get |
| 232 | 232 | |> Jpipe.required "description" Jdec.string |
| 233 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 233 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 234 | 234 | |> Jpipe.required "responses" responses |
| 235 | 235 | |> Jpipe.required "summary" Jdec.string |
| 236 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 236 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 237 | 237 | |
| 238 | 238 | encodeGet : Get -> Jenc.Value |
| 239 | 239 | encodeGet x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/010b1.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/016af.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/050b0.json
Melmdefault / QuickType.elm+6 −6
| @@ -101,7 +101,7 @@ optionalField key decoder fallback = | ||
| 101 | 101 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 102 | 102 | |
| 103 | 103 | quickType : Jdec.Decoder QuickType |
| 104 | -quickType = Jdec.list quickTypeElement | |
| 104 | +quickType = Jdec.list quickTypeElement | |
| 105 | 105 | |
| 106 | 106 | quickTypeToString : QuickType -> String |
| 107 | 107 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -110,13 +110,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 110 | 110 | quickTypeElement = |
| 111 | 111 | Jdec.succeed QuickTypeElement |
| 112 | 112 | |> Jpipe.required "id" Jdec.string |
| 113 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 114 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 115 | - |> Jpipe.required "links" (Jdec.list link) | |
| 113 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 114 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 115 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 116 | 116 | |> Jpipe.required "name" Jdec.string |
| 117 | - |> Jpipe.required "other_names" (Jdec.list otherName) | |
| 117 | + |> Jpipe.required "other_names" (Jdec.list otherName ) | |
| 118 | 118 | |> Jpipe.required "superseded_by" (Jdec.nullable Jdec.string) |
| 119 | - |> Jpipe.required "text" (Jdec.list text) | |
| 119 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 120 | 120 | |
| 121 | 121 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 122 | 122 | encodeQuickTypeElement x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/06bee.json
Melmdefault / QuickType.elm+6 −6
| @@ -88,7 +88,7 @@ optionalField key decoder fallback = | ||
| 88 | 88 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 89 | 89 | |
| 90 | 90 | quickType : Jdec.Decoder QuickType |
| 91 | -quickType = Jdec.list quickTypeElement | |
| 91 | +quickType = Jdec.list quickTypeElement | |
| 92 | 92 | |
| 93 | 93 | quickTypeToString : QuickType -> String |
| 94 | 94 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -97,13 +97,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 97 | 97 | quickTypeElement = |
| 98 | 98 | Jdec.succeed QuickTypeElement |
| 99 | 99 | |> Jpipe.required "id" Jdec.string |
| 100 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 101 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 102 | - |> Jpipe.required "links" (Jdec.list link) | |
| 100 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 101 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 102 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 103 | 103 | |> Jpipe.required "name" Jdec.string |
| 104 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 104 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 105 | 105 | |> Jpipe.required "superseded_by" (Jdec.null ()) |
| 106 | - |> Jpipe.required "text" (Jdec.list text) | |
| 106 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 107 | 107 | |
| 108 | 108 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 109 | 109 | encodeQuickTypeElement x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/07c75.json
Melmdefault / QuickType.elm+6 −6
| @@ -64,7 +64,7 @@ optionalField key decoder fallback = | ||
| 64 | 64 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 65 | 65 | |
| 66 | 66 | quickType : Jdec.Decoder QuickType |
| 67 | -quickType = Jdec.list quickTypeElement | |
| 67 | +quickType = Jdec.list quickTypeElement | |
| 68 | 68 | |
| 69 | 69 | quickTypeToString : QuickType -> String |
| 70 | 70 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -73,13 +73,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 73 | 73 | quickTypeElement = |
| 74 | 74 | Jdec.succeed QuickTypeElement |
| 75 | 75 | |> Jpipe.required "id" Jdec.string |
| 76 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 77 | - |> Jpipe.required "keywords" (Jdec.list Jdec.string) | |
| 78 | - |> Jpipe.required "links" (Jdec.list link) | |
| 76 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 77 | + |> Jpipe.required "keywords" (Jdec.list Jdec.string ) | |
| 78 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 79 | 79 | |> Jpipe.required "name" Jdec.string |
| 80 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 80 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 81 | 81 | |> Jpipe.required "superseded_by" (Jdec.null ()) |
| 82 | - |> Jpipe.required "text" (Jdec.list text) | |
| 82 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 83 | 83 | |
| 84 | 84 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 85 | 85 | encodeQuickTypeElement x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/0a358.json
Melmdefault / QuickType.elm+1 −1
| @@ -67,7 +67,7 @@ quickType = | ||
| 67 | 67 | |> Jpipe.required "next" Jdec.string |
| 68 | 68 | |> Jpipe.required "offset" Jdec.int |
| 69 | 69 | |> Jpipe.required "previous" Jdec.bool |
| 70 | - |> Jpipe.required "results" (Jdec.list result) | |
| 70 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 71 | 71 | |
| 72 | 72 | encodeQuickType : QuickType -> Jenc.Value |
| 73 | 73 | encodeQuickType x = |
Test case
1 generated file · +4 −4test/inputs/json/misc/0a91a.json
Melmdefault / QuickType.elm+4 −4
| @@ -268,7 +268,7 @@ optionalField key decoder fallback = | ||
| 268 | 268 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 269 | 269 | |
| 270 | 270 | quickType : Jdec.Decoder QuickType |
| 271 | -quickType = Jdec.list quickTypeElement | |
| 271 | +quickType = Jdec.list quickTypeElement | |
| 272 | 272 | |
| 273 | 273 | quickTypeToString : QuickType -> String |
| 274 | 274 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -324,7 +324,7 @@ payload = | ||
| 324 | 324 | Jdec.succeed Payload |
| 325 | 325 | |> Jpipe.custom (optionalField "action" (Jdec.nullable Jdec.string) Nothing) |
| 326 | 326 | |> Jpipe.custom (optionalField "before" (Jdec.nullable Jdec.string) Nothing) |
| 327 | - |> Jpipe.custom (optionalField "commits" (Jdec.nullable (Jdec.list commit)) Nothing) | |
| 327 | + |> Jpipe.custom (optionalField "commits" (Jdec.nullable (Jdec.list commit )) Nothing) | |
| 328 | 328 | |> Jpipe.custom (optionalField "description" (Jdec.nullable Jdec.string) Nothing) |
| 329 | 329 | |> Jpipe.custom (optionalField "distinct_size" (Jdec.nullable Jdec.int) Nothing) |
| 330 | 330 | |> Jpipe.custom (optionalField "head" (Jdec.nullable Jdec.string) Nothing) |
| @@ -393,7 +393,7 @@ pullRequest = | ||
| 393 | 393 | Jdec.succeed PullRequest |
| 394 | 394 | |> Jpipe.required "additions" Jdec.int |
| 395 | 395 | |> Jpipe.required "assignee" (Jdec.null ()) |
| 396 | - |> Jpipe.required "assignees" (Jdec.list Jdec.value) | |
| 396 | + |> Jpipe.required "assignees" (Jdec.list Jdec.value ) | |
| 397 | 397 | |> Jpipe.required "base" base |
| 398 | 398 | |> Jpipe.required "body" Jdec.string |
| 399 | 399 | |> Jpipe.required "changed_files" Jdec.int |
| @@ -422,7 +422,7 @@ pullRequest = | ||
| 422 | 422 | |> Jpipe.required "number" Jdec.int |
| 423 | 423 | |> Jpipe.required "patch_url" Jdec.string |
| 424 | 424 | |> Jpipe.required "rebaseable" (Jdec.null ()) |
| 425 | - |> Jpipe.required "requested_reviewers" (Jdec.list Jdec.value) | |
| 425 | + |> Jpipe.required "requested_reviewers" (Jdec.list Jdec.value ) | |
| 426 | 426 | |> Jpipe.required "review_comment_url" Jdec.string |
| 427 | 427 | |> Jpipe.required "review_comments" Jdec.int |
| 428 | 428 | |> Jpipe.required "review_comments_url" Jdec.string |
Test case
1 generated file · +5 −5test/inputs/json/misc/0b91a.json
Melmdefault / QuickType.elm+5 −5
| @@ -86,7 +86,7 @@ quickType : Jdec.Decoder QuickType | ||
| 86 | 86 | quickType = |
| 87 | 87 | Jdec.succeed QuickType |
| 88 | 88 | |> Jpipe.required "metadata" metadata |
| 89 | - |> Jpipe.required "results" (Jdec.list result) | |
| 89 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 90 | 90 | |
| 91 | 91 | encodeQuickType : QuickType -> Jenc.Value |
| 92 | 92 | encodeQuickType x = |
| @@ -141,17 +141,17 @@ encodeResultset x = | ||
| 141 | 141 | result : Jdec.Decoder Result |
| 142 | 142 | result = |
| 143 | 143 | Jdec.succeed Result |
| 144 | - |> Jpipe.required "attachment" (Jdec.list Jdec.value) | |
| 144 | + |> Jpipe.required "attachment" (Jdec.list Jdec.value ) | |
| 145 | 145 | |> Jpipe.required "body" Jdec.string |
| 146 | 146 | |> Jpipe.required "changed" Jdec.string |
| 147 | - |> Jpipe.required "component" (Jdec.list component) | |
| 147 | + |> Jpipe.required "component" (Jdec.list component ) | |
| 148 | 148 | |> Jpipe.required "created" Jdec.string |
| 149 | 149 | |> Jpipe.required "date" Jdec.string |
| 150 | - |> Jpipe.required "image" (Jdec.list Jdec.value) | |
| 150 | + |> Jpipe.required "image" (Jdec.list Jdec.value ) | |
| 151 | 151 | |> Jpipe.required "number" (Jdec.null ()) |
| 152 | 152 | |> Jpipe.required "teaser" (Jdec.null ()) |
| 153 | 153 | |> Jpipe.required "title" Jdec.string |
| 154 | - |> Jpipe.required "topic" (Jdec.list Jdec.value) | |
| 154 | + |> Jpipe.required "topic" (Jdec.list Jdec.value ) | |
| 155 | 155 | |> Jpipe.required "url" Jdec.string |
| 156 | 156 | |> Jpipe.required "uuid" Jdec.string |
| 157 | 157 | |> Jpipe.required "vuuid" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/0cffa.json
Melmdefault / QuickType.elm+1 −1
| @@ -167,7 +167,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 167 | 167 | quickType : Jdec.Decoder QuickType |
| 168 | 168 | quickType = |
| 169 | 169 | Jdec.succeed QuickType |
| 170 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 170 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 171 | 171 | |> Jpipe.required "meta" meta |
| 172 | 172 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +7 −7test/inputs/json/misc/0e0c2.json
Melmdefault / QuickType.elm+7 −7
| @@ -130,7 +130,7 @@ quickType = | ||
| 130 | 130 | |> Jpipe.required "count" Jdec.int |
| 131 | 131 | |> Jpipe.required "next" Jdec.string |
| 132 | 132 | |> Jpipe.required "previous" (Jdec.null ()) |
| 133 | - |> Jpipe.required "results" (Jdec.list result) | |
| 133 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 134 | 134 | |
| 135 | 135 | encodeQuickType : QuickType -> Jenc.Value |
| 136 | 136 | encodeQuickType x = |
| @@ -145,18 +145,18 @@ result : Jdec.Decoder Result | ||
| 145 | 145 | result = |
| 146 | 146 | Jdec.succeed Result |
| 147 | 147 | |> Jpipe.required "active_screens" Jdec.int |
| 148 | - |> Jpipe.required "collections" (Jdec.list collection) | |
| 149 | - |> Jpipe.required "details" (Jdec.list detail) | |
| 148 | + |> Jpipe.required "collections" (Jdec.list collection ) | |
| 149 | + |> Jpipe.required "details" (Jdec.list detail ) | |
| 150 | 150 | |> Jpipe.required "duration" Jdec.int |
| 151 | 151 | |> Jpipe.required "fav_movie" favMovie |
| 152 | 152 | |> Jpipe.required "id" Jdec.int |
| 153 | - |> Jpipe.required "images" (Jdec.list image) | |
| 153 | + |> Jpipe.required "images" (Jdec.list image ) | |
| 154 | 154 | |> Jpipe.required "language" resultLanguage |
| 155 | 155 | |> Jpipe.required "release_date" Jdec.string |
| 156 | 156 | |> Jpipe.required "stars" Jdec.int |
| 157 | - |> Jpipe.required "tags" (Jdec.nullable (Jdec.list Jdec.value)) | |
| 157 | + |> Jpipe.required "tags" (Jdec.nullable (Jdec.list Jdec.value )) | |
| 158 | 158 | |> Jpipe.required "title" Jdec.string |
| 159 | - |> Jpipe.required "videos" (Jdec.list video) | |
| 159 | + |> Jpipe.required "videos" (Jdec.list video ) | |
| 160 | 160 | |> Jpipe.required "vote_score" voteScore |
| 161 | 161 | |> Jpipe.required "watches" Jdec.int |
| 162 | 162 | |
| @@ -184,7 +184,7 @@ collection : Jdec.Decoder Collection | ||
| 184 | 184 | collection = |
| 185 | 185 | Jdec.succeed Collection |
| 186 | 186 | |> Jpipe.required "id" Jdec.int |
| 187 | - |> Jpipe.required "movies" (Jdec.list Jdec.int) | |
| 187 | + |> Jpipe.required "movies" (Jdec.list Jdec.int ) | |
| 188 | 188 | |> Jpipe.required "name" Jdec.string |
| 189 | 189 | |> Jpipe.required "slug" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/0fecf.json
Melmdefault / QuickType.elm+1 −1
| @@ -40,7 +40,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 40 | 40 | quickType : Jdec.Decoder QuickType |
| 41 | 41 | quickType = |
| 42 | 42 | Jdec.succeed QuickType |
| 43 | - |> Jpipe.required "countries" (Jdec.list Jdec.string) | |
| 43 | + |> Jpipe.required "countries" (Jdec.list Jdec.string ) | |
| 44 | 44 | |
| 45 | 45 | encodeQuickType : QuickType -> Jenc.Value |
| 46 | 46 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/10be4.json
Melmdefault / QuickType.elm+6 −6
| @@ -112,7 +112,7 @@ optionalField key decoder fallback = | ||
| 112 | 112 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 113 | 113 | |
| 114 | 114 | quickType : Jdec.Decoder QuickType |
| 115 | -quickType = Jdec.list quickTypeElement | |
| 115 | +quickType = Jdec.list quickTypeElement | |
| 116 | 116 | |
| 117 | 117 | quickTypeToString : QuickType -> String |
| 118 | 118 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -121,13 +121,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 121 | 121 | quickTypeElement = |
| 122 | 122 | Jdec.succeed QuickTypeElement |
| 123 | 123 | |> Jpipe.required "id" Jdec.string |
| 124 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 125 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 126 | - |> Jpipe.required "links" (Jdec.list link) | |
| 124 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 125 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 126 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 127 | 127 | |> Jpipe.required "name" Jdec.string |
| 128 | - |> Jpipe.required "other_names" (Jdec.list otherName) | |
| 128 | + |> Jpipe.required "other_names" (Jdec.list otherName ) | |
| 129 | 129 | |> Jpipe.required "superseded_by" (Jdec.nullable Jdec.string) |
| 130 | - |> Jpipe.required "text" (Jdec.list text) | |
| 130 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 131 | 131 | |
| 132 | 132 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 133 | 133 | encodeQuickTypeElement x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/127a1.json
Melmdefault / QuickType.elm+1 −1
| @@ -166,7 +166,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 166 | 166 | quickType : Jdec.Decoder QuickType |
| 167 | 167 | quickType = |
| 168 | 168 | Jdec.succeed QuickType |
| 169 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 169 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 170 | 170 | |> Jpipe.required "meta" meta |
| 171 | 171 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +1 −1test/inputs/json/misc/13d8d.json
Melmdefault / QuickType.elm+1 −1
| @@ -65,7 +65,7 @@ optionalField key decoder fallback = | ||
| 65 | 65 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 66 | 66 | |
| 67 | 67 | quickType : Jdec.Decoder QuickType |
| 68 | -quickType = Jdec.list quickTypeElement | |
| 68 | +quickType = Jdec.list quickTypeElement | |
| 69 | 69 | |
| 70 | 70 | quickTypeToString : QuickType -> String |
| 71 | 71 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/16bc5.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +4 −4test/inputs/json/misc/176f1.json
Melmdefault / QuickType.elm+4 −4
| @@ -69,7 +69,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 69 | 69 | quickType : Jdec.Decoder QuickType |
| 70 | 70 | quickType = |
| 71 | 71 | Jdec.succeed QuickType |
| 72 | - |> Jpipe.required "message" (Jdec.list Jdec.value) | |
| 72 | + |> Jpipe.required "message" (Jdec.list Jdec.value ) | |
| 73 | 73 | |> Jpipe.required "responseTime" Jdec.int |
| 74 | 74 | |> Jpipe.required "Results" results |
| 75 | 75 | |> Jpipe.required "status" Jdec.string |
| @@ -86,7 +86,7 @@ encodeQuickType x = | ||
| 86 | 86 | results : Jdec.Decoder Results |
| 87 | 87 | results = |
| 88 | 88 | Jdec.succeed Results |
| 89 | - |> Jpipe.required "series" (Jdec.list series) | |
| 89 | + |> Jpipe.required "series" (Jdec.list series ) | |
| 90 | 90 | |
| 91 | 91 | encodeResults : Results -> Jenc.Value |
| 92 | 92 | encodeResults x = |
| @@ -97,7 +97,7 @@ encodeResults x = | ||
| 97 | 97 | series : Jdec.Decoder Series |
| 98 | 98 | series = |
| 99 | 99 | Jdec.succeed Series |
| 100 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 100 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 101 | 101 | |> Jpipe.required "seriesID" Jdec.string |
| 102 | 102 | |
| 103 | 103 | encodeSeries : Series -> Jenc.Value |
| @@ -110,7 +110,7 @@ encodeSeries x = | ||
| 110 | 110 | datum : Jdec.Decoder Datum |
| 111 | 111 | datum = |
| 112 | 112 | Jdec.succeed Datum |
| 113 | - |> Jpipe.required "footnotes" (Jdec.list footnote) | |
| 113 | + |> Jpipe.required "footnotes" (Jdec.list footnote ) | |
| 114 | 114 | |> Jpipe.required "period" Jdec.string |
| 115 | 115 | |> Jpipe.required "periodName" Jdec.string |
| 116 | 116 | |> Jpipe.required "value" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/1a7f5.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/1b28c.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +2 −2test/inputs/json/misc/1b409.json
Melmdefault / QuickType.elm+2 −2
| @@ -143,7 +143,7 @@ quickType : Jdec.Decoder QuickType | ||
| 143 | 143 | quickType = |
| 144 | 144 | Jdec.succeed QuickType |
| 145 | 145 | |> Jpipe.required "meta" meta |
| 146 | - |> Jpipe.required "objects" (Jdec.list object) | |
| 146 | + |> Jpipe.required "objects" (Jdec.list object ) | |
| 147 | 147 | |
| 148 | 148 | encodeQuickType : QuickType -> Jenc.Value |
| 149 | 149 | encodeQuickType x = |
| @@ -171,7 +171,7 @@ object : Jdec.Decoder Object | ||
| 171 | 171 | object = |
| 172 | 172 | Jdec.succeed Object |
| 173 | 173 | |> Jpipe.required "caucus" (Jdec.null ()) |
| 174 | - |> Jpipe.required "congress_numbers" (Jdec.list Jdec.int) | |
| 174 | + |> Jpipe.required "congress_numbers" (Jdec.list Jdec.int ) | |
| 175 | 175 | |> Jpipe.required "current" Jdec.bool |
| 176 | 176 | |> Jpipe.required "description" Jdec.string |
| 177 | 177 | |> Jpipe.required "district" Jdec.int |
Test case
1 generated file · +4 −4test/inputs/json/misc/2465e.json
Melmdefault / QuickType.elm+4 −4
| @@ -130,8 +130,8 @@ quickType = | ||
| 130 | 130 | |> Jpipe.required "host" Jdec.string |
| 131 | 131 | |> Jpipe.required "info" info |
| 132 | 132 | |> Jpipe.required "paths" paths |
| 133 | - |> Jpipe.required "produces" (Jdec.list Jdec.string) | |
| 134 | - |> Jpipe.required "schemes" (Jdec.list Jdec.string) | |
| 133 | + |> Jpipe.required "produces" (Jdec.list Jdec.string ) | |
| 134 | + |> Jpipe.required "schemes" (Jdec.list Jdec.string ) | |
| 135 | 135 | |> Jpipe.required "swagger" Jdec.string |
| 136 | 136 | |
| 137 | 137 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -244,10 +244,10 @@ get : Jdec.Decoder Get | ||
| 244 | 244 | get = |
| 245 | 245 | Jdec.succeed Get |
| 246 | 246 | |> Jpipe.required "description" Jdec.string |
| 247 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 247 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 248 | 248 | |> Jpipe.required "responses" responses |
| 249 | 249 | |> Jpipe.required "summary" Jdec.string |
| 250 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 250 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 251 | 251 | |
| 252 | 252 | encodeGet : Get -> Jenc.Value |
| 253 | 253 | encodeGet x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/262f0.json
Melmdefault / QuickType.elm+1 −1
| @@ -282,7 +282,7 @@ item = | ||
| 282 | 282 | Jdec.succeed Item |
| 283 | 283 | |> Jpipe.required "condition" condition |
| 284 | 284 | |> Jpipe.required "description" Jdec.string |
| 285 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 285 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 286 | 286 | |> Jpipe.required "guid" guid |
| 287 | 287 | |> Jpipe.required "lat" Jdec.string |
| 288 | 288 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/26b49.json
Melmdefault / QuickType.elm+1 −1
| @@ -163,7 +163,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 163 | 163 | quickType : Jdec.Decoder QuickType |
| 164 | 164 | quickType = |
| 165 | 165 | Jdec.succeed QuickType |
| 166 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 166 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 167 | 167 | |> Jpipe.required "meta" meta |
| 168 | 168 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +14 −14test/inputs/json/misc/26c9c.json
Melmdefault / QuickType.elm+14 −14
| @@ -254,7 +254,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 254 | 254 | quickType : Jdec.Decoder QuickType |
| 255 | 255 | quickType = |
| 256 | 256 | Jdec.succeed QuickType |
| 257 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 257 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 258 | 258 | |> Jpipe.required "meta" meta |
| 259 | 259 | |
| 260 | 260 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -296,13 +296,13 @@ view = | ||
| 296 | 296 | |> Jpipe.required "attributionLink" Jdec.string |
| 297 | 297 | |> Jpipe.required "averageRating" Jdec.int |
| 298 | 298 | |> Jpipe.required "category" Jdec.string |
| 299 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 299 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 300 | 300 | |> Jpipe.required "createdAt" Jdec.int |
| 301 | 301 | |> Jpipe.required "description" Jdec.string |
| 302 | 302 | |> Jpipe.required "displayType" Jdec.string |
| 303 | 303 | |> Jpipe.required "downloadCount" Jdec.int |
| 304 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 305 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 304 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 305 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 306 | 306 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 307 | 307 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 308 | 308 | |> Jpipe.required "id" Jdec.string |
| @@ -320,12 +320,12 @@ view = | ||
| 320 | 320 | |> Jpipe.required "publicationGroup" Jdec.int |
| 321 | 321 | |> Jpipe.required "publicationStage" Jdec.string |
| 322 | 322 | |> Jpipe.required "query" query |
| 323 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 323 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 324 | 324 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 325 | 325 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| 326 | 326 | |> Jpipe.required "tableAuthor" owner |
| 327 | 327 | |> Jpipe.required "tableId" Jdec.int |
| 328 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 328 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 329 | 329 | |> Jpipe.required "totalTimesRated" Jdec.int |
| 330 | 330 | |> Jpipe.required "viewCount" Jdec.int |
| 331 | 331 | |> Jpipe.required "viewLastModified" Jdec.int |
| @@ -380,7 +380,7 @@ column = | ||
| 380 | 380 | |> Jpipe.custom (optionalField "cachedContents" (Jdec.nullable cachedContents) Nothing) |
| 381 | 381 | |> Jpipe.required "dataTypeName" Jdec.string |
| 382 | 382 | |> Jpipe.required "fieldName" Jdec.string |
| 383 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 383 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 384 | 384 | |> Jpipe.required "format" format |
| 385 | 385 | |> Jpipe.required "id" Jdec.int |
| 386 | 386 | |> Jpipe.required "name" Jdec.string |
| @@ -414,7 +414,7 @@ cachedContents = | ||
| 414 | 414 | |> Jpipe.required "null" Jdec.int |
| 415 | 415 | |> Jpipe.required "smallest" Jdec.string |
| 416 | 416 | |> Jpipe.custom (optionalField "sum" (Jdec.nullable Jdec.string) Nothing) |
| 417 | - |> Jpipe.required "top" (Jdec.list top) | |
| 417 | + |> Jpipe.required "top" (Jdec.list top ) | |
| 418 | 418 | |
| 419 | 419 | encodeCachedContents : CachedContents -> Jenc.Value |
| 420 | 420 | encodeCachedContents x = |
| @@ -461,7 +461,7 @@ encodeFormat x = | ||
| 461 | 461 | grant : Jdec.Decoder Grant |
| 462 | 462 | grant = |
| 463 | 463 | Jdec.succeed Grant |
| 464 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 464 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 465 | 465 | |> Jpipe.required "type" Jdec.string |
| 466 | 466 | |> Jpipe.required "inherited" Jdec.bool |
| 467 | 467 | |
| @@ -476,8 +476,8 @@ encodeGrant x = | ||
| 476 | 476 | metadata : Jdec.Decoder Metadata |
| 477 | 477 | metadata = |
| 478 | 478 | Jdec.succeed Metadata |
| 479 | - |> Jpipe.required "attachments" (Jdec.list attachment) | |
| 480 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 479 | + |> Jpipe.required "attachments" (Jdec.list attachment ) | |
| 480 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 481 | 481 | |> Jpipe.required "custom_fields" customFields |
| 482 | 482 | |> Jpipe.required "jsonQuery" jsonQuery |
| 483 | 483 | |> Jpipe.required "rdfSubject" Jdec.string |
| @@ -610,7 +610,7 @@ encodeNotes x = | ||
| 610 | 610 | jsonQuery : Jdec.Decoder JSONQuery |
| 611 | 611 | jsonQuery = |
| 612 | 612 | Jdec.succeed JSONQuery |
| 613 | - |> Jpipe.required "order" (Jdec.list order) | |
| 613 | + |> Jpipe.required "order" (Jdec.list order ) | |
| 614 | 614 | |
| 615 | 615 | encodeJSONQuery : JSONQuery -> Jenc.Value |
| 616 | 616 | encodeJSONQuery x = |
| @@ -661,7 +661,7 @@ owner = | ||
| 661 | 661 | |> Jpipe.required "profileImageUrlLarge" Jdec.string |
| 662 | 662 | |> Jpipe.required "profileImageUrlMedium" Jdec.string |
| 663 | 663 | |> Jpipe.required "profileImageUrlSmall" Jdec.string |
| 664 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 664 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 665 | 665 | |> Jpipe.required "roleName" Jdec.string |
| 666 | 666 | |> Jpipe.required "screenName" Jdec.string |
| 667 | 667 | |
| @@ -681,7 +681,7 @@ encodeOwner x = | ||
| 681 | 681 | query : Jdec.Decoder Query |
| 682 | 682 | query = |
| 683 | 683 | Jdec.succeed Query |
| 684 | - |> Jpipe.required "orderBys" (Jdec.list orderBy) | |
| 684 | + |> Jpipe.required "orderBys" (Jdec.list orderBy ) | |
| 685 | 685 | |
| 686 | 686 | encodeQuery : Query -> Jenc.Value |
| 687 | 687 | encodeQuery x = |
Test case
1 generated file · +5 −5test/inputs/json/misc/27332.json
Melmdefault / QuickType.elm+5 −5
| @@ -226,7 +226,7 @@ quickTypeData = | ||
| 226 | 226 | Jdec.succeed QuickTypeData |
| 227 | 227 | |> Jpipe.required "after" Jdec.string |
| 228 | 228 | |> Jpipe.required "before" (Jdec.null ()) |
| 229 | - |> Jpipe.required "children" (Jdec.list child) | |
| 229 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 230 | 230 | |> Jpipe.required "modhash" Jdec.string |
| 231 | 231 | |
| 232 | 232 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -285,7 +285,7 @@ childData = | ||
| 285 | 285 | |> Jpipe.required "locked" Jdec.bool |
| 286 | 286 | |> Jpipe.required "media" (Jdec.nullable media) |
| 287 | 287 | |> Jpipe.required "media_embed" mediaEmbed |
| 288 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 288 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 289 | 289 | |> Jpipe.required "name" Jdec.string |
| 290 | 290 | |> Jpipe.required "num_comments" Jdec.int |
| 291 | 291 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -315,7 +315,7 @@ childData = | ||
| 315 | 315 | |> Jpipe.required "title" Jdec.string |
| 316 | 316 | |> Jpipe.required "ups" Jdec.int |
| 317 | 317 | |> Jpipe.required "url" Jdec.string |
| 318 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 318 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 319 | 319 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 320 | 320 | |> Jpipe.required "visited" Jdec.bool |
| 321 | 321 | |
| @@ -489,7 +489,7 @@ preview : Jdec.Decoder Preview | ||
| 489 | 489 | preview = |
| 490 | 490 | Jdec.succeed Preview |
| 491 | 491 | |> Jpipe.required "enabled" Jdec.bool |
| 492 | - |> Jpipe.required "images" (Jdec.list imageElement) | |
| 492 | + |> Jpipe.required "images" (Jdec.list imageElement ) | |
| 493 | 493 | |
| 494 | 494 | encodePreview : Preview -> Jenc.Value |
| 495 | 495 | encodePreview x = |
| @@ -502,7 +502,7 @@ imageElement : Jdec.Decoder ImageElement | ||
| 502 | 502 | imageElement = |
| 503 | 503 | Jdec.succeed ImageElement |
| 504 | 504 | |> Jpipe.required "id" Jdec.string |
| 505 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 505 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 506 | 506 | |> Jpipe.required "source" source |
| 507 | 507 | |> Jpipe.required "variants" variants |
Test case
1 generated file · +6 −6test/inputs/json/misc/29f47.json
Melmdefault / QuickType.elm+6 −6
| @@ -215,7 +215,7 @@ quickTypeData = | ||
| 215 | 215 | Jdec.succeed QuickTypeData |
| 216 | 216 | |> Jpipe.required "after" Jdec.string |
| 217 | 217 | |> Jpipe.required "before" (Jdec.null ()) |
| 218 | - |> Jpipe.required "children" (Jdec.list child) | |
| 218 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 219 | 219 | |> Jpipe.required "modhash" Jdec.string |
| 220 | 220 | |
| 221 | 221 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -274,7 +274,7 @@ childData = | ||
| 274 | 274 | |> Jpipe.required "locked" Jdec.bool |
| 275 | 275 | |> Jpipe.required "media" (Jdec.null ()) |
| 276 | 276 | |> Jpipe.required "media_embed" mediaEmbed |
| 277 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 277 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 278 | 278 | |> Jpipe.required "name" Jdec.string |
| 279 | 279 | |> Jpipe.required "num_comments" Jdec.int |
| 280 | 280 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -304,7 +304,7 @@ childData = | ||
| 304 | 304 | |> Jpipe.required "title" Jdec.string |
| 305 | 305 | |> Jpipe.required "ups" Jdec.int |
| 306 | 306 | |> Jpipe.required "url" Jdec.string |
| 307 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 307 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 308 | 308 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 309 | 309 | |> Jpipe.required "visited" Jdec.bool |
| 310 | 310 | |
| @@ -446,7 +446,7 @@ preview : Jdec.Decoder Preview | ||
| 446 | 446 | preview = |
| 447 | 447 | Jdec.succeed Preview |
| 448 | 448 | |> Jpipe.required "enabled" Jdec.bool |
| 449 | - |> Jpipe.required "images" (Jdec.list imageElement) | |
| 449 | + |> Jpipe.required "images" (Jdec.list imageElement ) | |
| 450 | 450 | |
| 451 | 451 | encodePreview : Preview -> Jenc.Value |
| 452 | 452 | encodePreview x = |
| @@ -459,7 +459,7 @@ imageElement : Jdec.Decoder ImageElement | ||
| 459 | 459 | imageElement = |
| 460 | 460 | Jdec.succeed ImageElement |
| 461 | 461 | |> Jpipe.required "id" Jdec.string |
| 462 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 462 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 463 | 463 | |> Jpipe.required "source" source |
| 464 | 464 | |> Jpipe.required "variants" variants |
| 465 | 465 | |
| @@ -503,7 +503,7 @@ encodeVariants x = | ||
| 503 | 503 | gif : Jdec.Decoder GIF |
| 504 | 504 | gif = |
| 505 | 505 | Jdec.succeed GIF |
| 506 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 506 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 507 | 507 | |> Jpipe.required "source" source |
| 508 | 508 | |
| 509 | 509 | encodeGIF : GIF -> Jenc.Value |
Test case
1 generated file · +2 −2test/inputs/json/misc/2d4e2.json
Melmdefault / QuickType.elm+2 −2
| @@ -163,7 +163,7 @@ quickType : Jdec.Decoder QuickType | ||
| 163 | 163 | quickType = |
| 164 | 164 | Jdec.succeed QuickType |
| 165 | 165 | |> Jpipe.required "meta" meta |
| 166 | - |> Jpipe.required "objects" (Jdec.list object) | |
| 166 | + |> Jpipe.required "objects" (Jdec.list object ) | |
| 167 | 167 | |
| 168 | 168 | encodeQuickType : QuickType -> Jenc.Value |
| 169 | 169 | encodeQuickType x = |
| @@ -191,7 +191,7 @@ object : Jdec.Decoder Object | ||
| 191 | 191 | object = |
| 192 | 192 | Jdec.succeed Object |
| 193 | 193 | |> Jpipe.required "caucus" (Jdec.nullable party) |
| 194 | - |> Jpipe.required "congress_numbers" (Jdec.list Jdec.int) | |
| 194 | + |> Jpipe.required "congress_numbers" (Jdec.list Jdec.int ) | |
| 195 | 195 | |> Jpipe.required "current" Jdec.bool |
| 196 | 196 | |> Jpipe.required "description" Jdec.string |
| 197 | 197 | |> Jpipe.required "district" (Jdec.null ()) |
Test case
1 generated file · +2 −2test/inputs/json/misc/2df80.json
Melmdefault / QuickType.elm+2 −2
| @@ -116,7 +116,7 @@ optionalField key decoder fallback = | ||
| 116 | 116 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 117 | 117 | |
| 118 | 118 | quickType : Jdec.Decoder QuickType |
| 119 | -quickType = Jdec.list quickTypeUnion | |
| 119 | +quickType = Jdec.list quickTypeUnion | |
| 120 | 120 | |
| 121 | 121 | quickTypeToString : QuickType -> String |
| 122 | 122 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -124,7 +124,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 124 | 124 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 125 | 125 | quickTypeUnion = |
| 126 | 126 | Jdec.oneOf |
| 127 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 127 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 128 | 128 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 129 | 129 | ] |
Test case
1 generated file · +2 −2test/inputs/json/misc/31189.json
Melmdefault / QuickType.elm+2 −2
| @@ -67,7 +67,7 @@ quickType : Jdec.Decoder QuickType | ||
| 67 | 67 | quickType = |
| 68 | 68 | Jdec.succeed QuickType |
| 69 | 69 | |> Jpipe.required "details" Jdec.string |
| 70 | - |> Jpipe.required "rates" (Jdec.list rate) | |
| 70 | + |> Jpipe.required "rates" (Jdec.list rate ) | |
| 71 | 71 | |> Jpipe.required "version" (Jdec.null ()) |
| 72 | 72 | |
| 73 | 73 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -84,7 +84,7 @@ rate = | ||
| 84 | 84 | |> Jpipe.required "code" Jdec.string |
| 85 | 85 | |> Jpipe.required "country_code" Jdec.string |
| 86 | 86 | |> Jpipe.required "name" Jdec.string |
| 87 | - |> Jpipe.required "periods" (Jdec.list period) | |
| 87 | + |> Jpipe.required "periods" (Jdec.list period ) | |
| 88 | 88 | |
| 89 | 89 | encodeRate : Rate -> Jenc.Value |
| 90 | 90 | encodeRate x = |
Test case
1 generated file · +3 −3test/inputs/json/misc/32431.json
Melmdefault / QuickType.elm+3 −3
| @@ -120,8 +120,8 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 120 | 120 | quickType : Jdec.Decoder QuickType |
| 121 | 121 | quickType = |
| 122 | 122 | Jdec.succeed QuickType |
| 123 | - |> Jpipe.required "bbox" (Jdec.list Jdec.float) | |
| 124 | - |> Jpipe.required "features" (Jdec.list featureElement) | |
| 123 | + |> Jpipe.required "bbox" (Jdec.list Jdec.float ) | |
| 124 | + |> Jpipe.required "features" (Jdec.list featureElement ) | |
| 125 | 125 | |> Jpipe.required "metadata" metadata |
| 126 | 126 | |> Jpipe.required "type" Jdec.string |
| 127 | 127 | |
| @@ -167,7 +167,7 @@ encodeFeatureType x = case x of | ||
| 167 | 167 | geometry : Jdec.Decoder Geometry |
| 168 | 168 | geometry = |
| 169 | 169 | Jdec.succeed Geometry |
| 170 | - |> Jpipe.required "coordinates" (Jdec.list Jdec.float) | |
| 170 | + |> Jpipe.required "coordinates" (Jdec.list Jdec.float ) | |
| 171 | 171 | |> Jpipe.required "type" geometryType |
| 172 | 172 | |
| 173 | 173 | encodeGeometry : Geometry -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/misc/32d5c.json
Melmdefault / QuickType.elm+1 −1
| @@ -45,7 +45,7 @@ optionalField key decoder fallback = | ||
| 45 | 45 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 46 | 46 | |
| 47 | 47 | quickType : Jdec.Decoder QuickType |
| 48 | -quickType = Jdec.list quickTypeElement | |
| 48 | +quickType = Jdec.list quickTypeElement | |
| 49 | 49 | |
| 50 | 50 | quickTypeToString : QuickType -> String |
| 51 | 51 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +2 −2test/inputs/json/misc/337ed.json
Melmdefault / QuickType.elm+2 −2
| @@ -121,7 +121,7 @@ quickType = | ||
| 121 | 121 | |> Jpipe.required "next" Jdec.string |
| 122 | 122 | |> Jpipe.required "offset" Jdec.int |
| 123 | 123 | |> Jpipe.required "previous" Jdec.bool |
| 124 | - |> Jpipe.required "results" (Jdec.list result) | |
| 124 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 125 | 125 | |
| 126 | 126 | encodeQuickType : QuickType -> Jenc.Value |
| 127 | 127 | encodeQuickType x = |
| @@ -152,7 +152,7 @@ result = | ||
| 152 | 152 | |> Jpipe.required "cost_max" (Jdec.nullable Jdec.int) |
| 153 | 153 | |> Jpipe.required "cost_min" (Jdec.nullable Jdec.int) |
| 154 | 154 | |> Jpipe.required "created_at" Jdec.string |
| 155 | - |> Jpipe.required "customIncomes" (Jdec.list customIncome) | |
| 155 | + |> Jpipe.required "customIncomes" (Jdec.list customIncome ) | |
| 156 | 156 | |> Jpipe.required "direct_rep_costs_max" (Jdec.null ()) |
| 157 | 157 | |> Jpipe.required "direct_rep_costs_min" (Jdec.null ()) |
| 158 | 158 | |> Jpipe.required "end_date" Jdec.string |
Test case
1 generated file · +4 −4test/inputs/json/misc/33d2e.json
Melmdefault / QuickType.elm+4 −4
| @@ -94,7 +94,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 94 | 94 | quickType : Jdec.Decoder QuickType |
| 95 | 95 | quickType = |
| 96 | 96 | Jdec.succeed QuickType |
| 97 | - |> Jpipe.required "laureates" (Jdec.list laureate) | |
| 97 | + |> Jpipe.required "laureates" (Jdec.list laureate ) | |
| 98 | 98 | |
| 99 | 99 | encodeQuickType : QuickType -> Jenc.Value |
| 100 | 100 | encodeQuickType x = |
| @@ -116,7 +116,7 @@ laureate = | ||
| 116 | 116 | |> Jpipe.custom (optionalField "firstname" (Jdec.nullable Jdec.string) Nothing) |
| 117 | 117 | |> Jpipe.required "gender" gender |
| 118 | 118 | |> Jpipe.required "id" Jdec.string |
| 119 | - |> Jpipe.required "prizes" (Jdec.list prize) | |
| 119 | + |> Jpipe.required "prizes" (Jdec.list prize ) | |
| 120 | 120 | |> Jpipe.custom (optionalField "surname" (Jdec.nullable Jdec.string) Nothing) |
| 121 | 121 | |
| 122 | 122 | encodeLaureate : Laureate -> Jenc.Value |
| @@ -157,7 +157,7 @@ encodeGender x = case x of | ||
| 157 | 157 | prize : Jdec.Decoder Prize |
| 158 | 158 | prize = |
| 159 | 159 | Jdec.succeed Prize |
| 160 | - |> Jpipe.required "affiliations" (Jdec.list affiliationElement) | |
| 160 | + |> Jpipe.required "affiliations" (Jdec.list affiliationElement ) | |
| 161 | 161 | |> Jpipe.custom (optionalField "category" (Jdec.nullable category) Nothing) |
| 162 | 162 | |> Jpipe.custom (optionalField "motivation" (Jdec.nullable Jdec.string) Nothing) |
| 163 | 163 | |> Jpipe.custom (optionalField "overallMotivation" (Jdec.nullable Jdec.string) Nothing) |
| @@ -178,7 +178,7 @@ encodePrize x = | ||
| 178 | 178 | affiliationElement : Jdec.Decoder AffiliationElement |
| 179 | 179 | affiliationElement = |
| 180 | 180 | Jdec.oneOf |
| 181 | - [ Jdec.map AnythingArrayInAffiliationElement (Jdec.list Jdec.value) | |
| 181 | + [ Jdec.map AnythingArrayInAffiliationElement (Jdec.list Jdec.value ) | |
| 182 | 182 | , Jdec.map AffiliationClassInAffiliationElement affiliationClass |
| 183 | 183 | ] |
Test case
1 generated file · +2 −2test/inputs/json/misc/34702.json
Melmdefault / QuickType.elm+2 −2
| @@ -140,7 +140,7 @@ quickType : Jdec.Decoder QuickType | ||
| 140 | 140 | quickType = |
| 141 | 141 | Jdec.succeed QuickType |
| 142 | 142 | |> Jpipe.required "crs" crs |
| 143 | - |> Jpipe.required "features" (Jdec.list featureElement) | |
| 143 | + |> Jpipe.required "features" (Jdec.list featureElement ) | |
| 144 | 144 | |> Jpipe.required "type" Jdec.string |
| 145 | 145 | |> Jpipe.required "totalFeatures" Jdec.int |
| 146 | 146 | |
| @@ -212,7 +212,7 @@ encodeFeatureType x = case x of | ||
| 212 | 212 | geometry : Jdec.Decoder Geometry |
| 213 | 213 | geometry = |
| 214 | 214 | Jdec.succeed Geometry |
| 215 | - |> Jpipe.required "coordinates" (Jdec.list Jdec.float) | |
| 215 | + |> Jpipe.required "coordinates" (Jdec.list Jdec.float ) | |
| 216 | 216 | |> Jpipe.required "type" geometryType |
| 217 | 217 | |
| 218 | 218 | encodeGeometry : Geometry -> Jenc.Value |
Test case
1 generated file · +6 −6test/inputs/json/misc/3536b.json
Melmdefault / QuickType.elm+6 −6
| @@ -76,7 +76,7 @@ optionalField key decoder fallback = | ||
| 76 | 76 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 77 | 77 | |
| 78 | 78 | quickType : Jdec.Decoder QuickType |
| 79 | -quickType = Jdec.list quickTypeElement | |
| 79 | +quickType = Jdec.list quickTypeElement | |
| 80 | 80 | |
| 81 | 81 | quickTypeToString : QuickType -> String |
| 82 | 82 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -85,13 +85,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 85 | 85 | quickTypeElement = |
| 86 | 86 | Jdec.succeed QuickTypeElement |
| 87 | 87 | |> Jpipe.required "id" Jdec.string |
| 88 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 89 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 90 | - |> Jpipe.required "links" (Jdec.list link) | |
| 88 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 89 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 90 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 91 | 91 | |> Jpipe.required "name" Jdec.string |
| 92 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 92 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 93 | 93 | |> Jpipe.required "superseded_by" Jdec.string |
| 94 | - |> Jpipe.required "text" (Jdec.list text) | |
| 94 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 95 | 95 | |
| 96 | 96 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 97 | 97 | encodeQuickTypeElement x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/3659d.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +4 −4test/inputs/json/misc/3e9a3.json
Melmdefault / QuickType.elm+4 −4
| @@ -69,7 +69,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 69 | 69 | quickType : Jdec.Decoder QuickType |
| 70 | 70 | quickType = |
| 71 | 71 | Jdec.succeed QuickType |
| 72 | - |> Jpipe.required "message" (Jdec.list Jdec.value) | |
| 72 | + |> Jpipe.required "message" (Jdec.list Jdec.value ) | |
| 73 | 73 | |> Jpipe.required "responseTime" Jdec.int |
| 74 | 74 | |> Jpipe.required "Results" results |
| 75 | 75 | |> Jpipe.required "status" Jdec.string |
| @@ -86,7 +86,7 @@ encodeQuickType x = | ||
| 86 | 86 | results : Jdec.Decoder Results |
| 87 | 87 | results = |
| 88 | 88 | Jdec.succeed Results |
| 89 | - |> Jpipe.required "series" (Jdec.list series) | |
| 89 | + |> Jpipe.required "series" (Jdec.list series ) | |
| 90 | 90 | |
| 91 | 91 | encodeResults : Results -> Jenc.Value |
| 92 | 92 | encodeResults x = |
| @@ -97,7 +97,7 @@ encodeResults x = | ||
| 97 | 97 | series : Jdec.Decoder Series |
| 98 | 98 | series = |
| 99 | 99 | Jdec.succeed Series |
| 100 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 100 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 101 | 101 | |> Jpipe.required "seriesID" Jdec.string |
| 102 | 102 | |
| 103 | 103 | encodeSeries : Series -> Jenc.Value |
| @@ -110,7 +110,7 @@ encodeSeries x = | ||
| 110 | 110 | datum : Jdec.Decoder Datum |
| 111 | 111 | datum = |
| 112 | 112 | Jdec.succeed Datum |
| 113 | - |> Jpipe.required "footnotes" (Jdec.list footnote) | |
| 113 | + |> Jpipe.required "footnotes" (Jdec.list footnote ) | |
| 114 | 114 | |> Jpipe.required "period" Jdec.string |
| 115 | 115 | |> Jpipe.required "periodName" Jdec.string |
| 116 | 116 | |> Jpipe.required "value" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/3f1ce.json
Melmdefault / QuickType.elm+1 −1
| @@ -280,7 +280,7 @@ item = | ||
| 280 | 280 | Jdec.succeed Item |
| 281 | 281 | |> Jpipe.required "condition" condition |
| 282 | 282 | |> Jpipe.required "description" Jdec.string |
| 283 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 283 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 284 | 284 | |> Jpipe.required "guid" guid |
| 285 | 285 | |> Jpipe.required "lat" Jdec.string |
| 286 | 286 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +10 −10test/inputs/json/misc/421d4.json
Melmdefault / QuickType.elm+10 −10
| @@ -171,7 +171,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 171 | 171 | quickType : Jdec.Decoder QuickType |
| 172 | 172 | quickType = |
| 173 | 173 | Jdec.succeed QuickType |
| 174 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 174 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 175 | 175 | |> Jpipe.required "meta" meta |
| 176 | 176 | |
| 177 | 177 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -212,13 +212,13 @@ view = | ||
| 212 | 212 | |> Jpipe.required "attribution" Jdec.string |
| 213 | 213 | |> Jpipe.required "averageRating" Jdec.int |
| 214 | 214 | |> Jpipe.required "category" Jdec.string |
| 215 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 215 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 216 | 216 | |> Jpipe.required "createdAt" Jdec.int |
| 217 | 217 | |> Jpipe.required "description" Jdec.string |
| 218 | 218 | |> Jpipe.required "displayType" Jdec.string |
| 219 | 219 | |> Jpipe.required "downloadCount" Jdec.int |
| 220 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 221 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 220 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 221 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 222 | 222 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 223 | 223 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 224 | 224 | |> Jpipe.required "id" Jdec.string |
| @@ -238,13 +238,13 @@ view = | ||
| 238 | 238 | |> Jpipe.required "publicationGroup" Jdec.int |
| 239 | 239 | |> Jpipe.required "publicationStage" Jdec.string |
| 240 | 240 | |> Jpipe.required "query" query |
| 241 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 241 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 242 | 242 | |> Jpipe.required "rowClass" Jdec.string |
| 243 | 243 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 244 | 244 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| 245 | 245 | |> Jpipe.required "tableAuthor" owner |
| 246 | 246 | |> Jpipe.required "tableId" Jdec.int |
| 247 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 247 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 248 | 248 | |> Jpipe.required "totalTimesRated" Jdec.int |
| 249 | 249 | |> Jpipe.required "viewCount" Jdec.int |
| 250 | 250 | |> Jpipe.required "viewLastModified" Jdec.int |
| @@ -301,7 +301,7 @@ column = | ||
| 301 | 301 | |> Jpipe.custom (optionalField "cachedContents" (Jdec.nullable cachedContents) Nothing) |
| 302 | 302 | |> Jpipe.required "dataTypeName" Jdec.string |
| 303 | 303 | |> Jpipe.required "fieldName" Jdec.string |
| 304 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 304 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 305 | 305 | |> Jpipe.required "format" query |
| 306 | 306 | |> Jpipe.required "id" Jdec.int |
| 307 | 307 | |> Jpipe.required "name" Jdec.string |
| @@ -335,7 +335,7 @@ cachedContents = | ||
| 335 | 335 | |> Jpipe.required "null" Jdec.int |
| 336 | 336 | |> Jpipe.custom (optionalField "smallest" (Jdec.nullable Jdec.string) Nothing) |
| 337 | 337 | |> Jpipe.custom (optionalField "sum" (Jdec.nullable Jdec.string) Nothing) |
| 338 | - |> Jpipe.custom (optionalField "top" (Jdec.nullable (Jdec.list top)) Nothing) | |
| 338 | + |> Jpipe.custom (optionalField "top" (Jdec.nullable (Jdec.list top )) Nothing) | |
| 339 | 339 | |
| 340 | 340 | encodeCachedContents : CachedContents -> Jenc.Value |
| 341 | 341 | encodeCachedContents x = |
| @@ -375,7 +375,7 @@ encodeQuery x = | ||
| 375 | 375 | grant : Jdec.Decoder Grant |
| 376 | 376 | grant = |
| 377 | 377 | Jdec.succeed Grant |
| 378 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 378 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 379 | 379 | |> Jpipe.required "type" Jdec.string |
| 380 | 380 | |> Jpipe.required "inherited" Jdec.bool |
| 381 | 381 | |
| @@ -401,7 +401,7 @@ encodeLicense x = | ||
| 401 | 401 | metadata : Jdec.Decoder Metadata |
| 402 | 402 | metadata = |
| 403 | 403 | Jdec.succeed Metadata |
| 404 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 404 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 405 | 405 | |> Jpipe.required "rdfClass" Jdec.string |
| 406 | 406 | |> Jpipe.required "rdfSubject" Jdec.string |
| 407 | 407 | |> Jpipe.required "renderTypeConfig" renderTypeConfig |
Test case
1 generated file · +1 −1test/inputs/json/misc/437e7.json
Melmdefault / QuickType.elm+1 −1
| @@ -160,7 +160,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 160 | 160 | quickType : Jdec.Decoder QuickType |
| 161 | 161 | quickType = |
| 162 | 162 | Jdec.succeed QuickType |
| 163 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 163 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 164 | 164 | |> Jpipe.required "meta" meta |
| 165 | 165 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +1 −1test/inputs/json/misc/43970.json
Melmdefault / QuickType.elm+1 −1
| @@ -40,7 +40,7 @@ optionalField key decoder fallback = | ||
| 40 | 40 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 41 | 41 | |
| 42 | 42 | quickType : Jdec.Decoder QuickType |
| 43 | -quickType = Jdec.list quickTypeElement | |
| 43 | +quickType = Jdec.list quickTypeElement | |
| 44 | 44 | |
| 45 | 45 | quickTypeToString : QuickType -> String |
| 46 | 46 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +6 −6test/inputs/json/misc/458db.json
Melmdefault / QuickType.elm+6 −6
| @@ -89,7 +89,7 @@ quickType : Jdec.Decoder QuickType | ||
| 89 | 89 | quickType = |
| 90 | 90 | Jdec.succeed QuickType |
| 91 | 91 | |> Jpipe.required "metadata" metadata |
| 92 | - |> Jpipe.required "results" (Jdec.list result) | |
| 92 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 93 | 93 | |
| 94 | 94 | encodeQuickType : QuickType -> Jenc.Value |
| 95 | 95 | encodeQuickType x = |
| @@ -144,16 +144,16 @@ encodeResultset x = | ||
| 144 | 144 | result : Jdec.Decoder Result |
| 145 | 145 | result = |
| 146 | 146 | Jdec.succeed Result |
| 147 | - |> Jpipe.required "attachments" (Jdec.list Jdec.value) | |
| 147 | + |> Jpipe.required "attachments" (Jdec.list Jdec.value ) | |
| 148 | 148 | |> Jpipe.required "body" Jdec.string |
| 149 | 149 | |> Jpipe.required "changed" Jdec.string |
| 150 | - |> Jpipe.required "component" (Jdec.list component) | |
| 150 | + |> Jpipe.required "component" (Jdec.list component ) | |
| 151 | 151 | |> Jpipe.required "created" Jdec.string |
| 152 | 152 | |> Jpipe.required "date" Jdec.string |
| 153 | - |> Jpipe.required "image" (Jdec.list Jdec.value) | |
| 154 | - |> Jpipe.required "teaser" (Jdec.list Jdec.value) | |
| 153 | + |> Jpipe.required "image" (Jdec.list Jdec.value ) | |
| 154 | + |> Jpipe.required "teaser" (Jdec.list Jdec.value ) | |
| 155 | 155 | |> Jpipe.required "title" Jdec.string |
| 156 | - |> Jpipe.required "topic" (Jdec.list Jdec.value) | |
| 156 | + |> Jpipe.required "topic" (Jdec.list Jdec.value ) | |
| 157 | 157 | |> Jpipe.required "url" Jdec.string |
| 158 | 158 | |> Jpipe.required "uuid" Jdec.string |
| 159 | 159 | |> Jpipe.required "vuuid" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/4961a.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/4a0d7.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +2 −2test/inputs/json/misc/4a455.json
Melmdefault / QuickType.elm+2 −2
| @@ -92,7 +92,7 @@ quickType : Jdec.Decoder QuickType | ||
| 92 | 92 | quickType = |
| 93 | 93 | Jdec.succeed QuickType |
| 94 | 94 | |> Jpipe.required "crs" crs |
| 95 | - |> Jpipe.required "features" (Jdec.list featureElement) | |
| 95 | + |> Jpipe.required "features" (Jdec.list featureElement ) | |
| 96 | 96 | |> Jpipe.required "type" Jdec.string |
| 97 | 97 | |> Jpipe.required "totalFeatures" Jdec.int |
| 98 | 98 | |
| @@ -164,7 +164,7 @@ encodeFeatureType x = case x of | ||
| 164 | 164 | geometry : Jdec.Decoder Geometry |
| 165 | 165 | geometry = |
| 166 | 166 | Jdec.succeed Geometry |
| 167 | - |> Jpipe.required "coordinates" (Jdec.list (Jdec.list Jdec.float)) | |
| 167 | + |> Jpipe.required "coordinates" (Jdec.list (Jdec.list Jdec.float ) ) | |
| 168 | 168 | |> Jpipe.required "type" geometryType |
| 169 | 169 | |
| 170 | 170 | encodeGeometry : Geometry -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/misc/4c547.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +5 −5test/inputs/json/misc/4d6fb.json
Melmdefault / QuickType.elm+5 −5
| @@ -220,7 +220,7 @@ quickTypeData = | ||
| 220 | 220 | Jdec.succeed QuickTypeData |
| 221 | 221 | |> Jpipe.required "after" Jdec.string |
| 222 | 222 | |> Jpipe.required "before" (Jdec.null ()) |
| 223 | - |> Jpipe.required "children" (Jdec.list child) | |
| 223 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 224 | 224 | |> Jpipe.required "modhash" Jdec.string |
| 225 | 225 | |
| 226 | 226 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -279,7 +279,7 @@ childData = | ||
| 279 | 279 | |> Jpipe.required "locked" Jdec.bool |
| 280 | 280 | |> Jpipe.required "media" (Jdec.nullable media) |
| 281 | 281 | |> Jpipe.required "media_embed" mediaEmbed |
| 282 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 282 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 283 | 283 | |> Jpipe.required "name" Jdec.string |
| 284 | 284 | |> Jpipe.required "num_comments" Jdec.int |
| 285 | 285 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -309,7 +309,7 @@ childData = | ||
| 309 | 309 | |> Jpipe.required "title" Jdec.string |
| 310 | 310 | |> Jpipe.required "ups" Jdec.int |
| 311 | 311 | |> Jpipe.required "url" Jdec.string |
| 312 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 312 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 313 | 313 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 314 | 314 | |> Jpipe.required "visited" Jdec.bool |
| 315 | 315 | |
| @@ -466,7 +466,7 @@ preview : Jdec.Decoder Preview | ||
| 466 | 466 | preview = |
| 467 | 467 | Jdec.succeed Preview |
| 468 | 468 | |> Jpipe.required "enabled" Jdec.bool |
| 469 | - |> Jpipe.required "images" (Jdec.list image) | |
| 469 | + |> Jpipe.required "images" (Jdec.list image ) | |
| 470 | 470 | |
| 471 | 471 | encodePreview : Preview -> Jenc.Value |
| 472 | 472 | encodePreview x = |
| @@ -479,7 +479,7 @@ image : Jdec.Decoder Image | ||
| 479 | 479 | image = |
| 480 | 480 | Jdec.succeed Image |
| 481 | 481 | |> Jpipe.required "id" Jdec.string |
| 482 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 482 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 483 | 483 | |> Jpipe.required "source" source |
| 484 | 484 | |> Jpipe.required "variants" variants |
Test case
1 generated file · +1 −1test/inputs/json/misc/4e336.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/54d32.json
Melmdefault / QuickType.elm+1 −1
| @@ -72,7 +72,7 @@ quickType = | ||
| 72 | 72 | |> Jpipe.required "next" Jdec.string |
| 73 | 73 | |> Jpipe.required "offset" Jdec.int |
| 74 | 74 | |> Jpipe.required "previous" Jdec.bool |
| 75 | - |> Jpipe.required "results" (Jdec.list result) | |
| 75 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 76 | 76 | |
| 77 | 77 | encodeQuickType : QuickType -> Jenc.Value |
| 78 | 78 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/570ec.json
Melmdefault / QuickType.elm+6 −6
| @@ -76,7 +76,7 @@ optionalField key decoder fallback = | ||
| 76 | 76 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 77 | 77 | |
| 78 | 78 | quickType : Jdec.Decoder QuickType |
| 79 | -quickType = Jdec.list quickTypeElement | |
| 79 | +quickType = Jdec.list quickTypeElement | |
| 80 | 80 | |
| 81 | 81 | quickTypeToString : QuickType -> String |
| 82 | 82 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -85,13 +85,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 85 | 85 | quickTypeElement = |
| 86 | 86 | Jdec.succeed QuickTypeElement |
| 87 | 87 | |> Jpipe.required "id" Jdec.string |
| 88 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 89 | - |> Jpipe.required "keywords" (Jdec.list Jdec.string) | |
| 90 | - |> Jpipe.required "links" (Jdec.list link) | |
| 88 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 89 | + |> Jpipe.required "keywords" (Jdec.list Jdec.string ) | |
| 90 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 91 | 91 | |> Jpipe.required "name" Jdec.string |
| 92 | - |> Jpipe.required "other_names" (Jdec.list otherName) | |
| 92 | + |> Jpipe.required "other_names" (Jdec.list otherName ) | |
| 93 | 93 | |> Jpipe.required "superseded_by" (Jdec.null ()) |
| 94 | - |> Jpipe.required "text" (Jdec.list text) | |
| 94 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 95 | 95 | |
| 96 | 96 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 97 | 97 | encodeQuickTypeElement x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/5eae5.json
Melmdefault / QuickType.elm+1 −1
| @@ -41,7 +41,7 @@ optionalField key decoder fallback = | ||
| 41 | 41 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 42 | 42 | |
| 43 | 43 | quickType : Jdec.Decoder QuickType |
| 44 | -quickType = Jdec.list quickTypeElement | |
| 44 | +quickType = Jdec.list quickTypeElement | |
| 45 | 45 | |
| 46 | 46 | quickTypeToString : QuickType -> String |
| 47 | 47 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +14 −14test/inputs/json/misc/5f7fe.json
Melmdefault / QuickType.elm+14 −14
| @@ -256,7 +256,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 256 | 256 | quickType : Jdec.Decoder QuickType |
| 257 | 257 | quickType = |
| 258 | 258 | Jdec.succeed QuickType |
| 259 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 259 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 260 | 260 | |> Jpipe.required "meta" meta |
| 261 | 261 | |
| 262 | 262 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -298,13 +298,13 @@ view = | ||
| 298 | 298 | |> Jpipe.required "attributionLink" Jdec.string |
| 299 | 299 | |> Jpipe.required "averageRating" Jdec.int |
| 300 | 300 | |> Jpipe.required "category" Jdec.string |
| 301 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 301 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 302 | 302 | |> Jpipe.required "createdAt" Jdec.int |
| 303 | 303 | |> Jpipe.required "description" Jdec.string |
| 304 | 304 | |> Jpipe.required "displayType" Jdec.string |
| 305 | 305 | |> Jpipe.required "downloadCount" Jdec.int |
| 306 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 307 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 306 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 307 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 308 | 308 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 309 | 309 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 310 | 310 | |> Jpipe.required "id" Jdec.string |
| @@ -322,12 +322,12 @@ view = | ||
| 322 | 322 | |> Jpipe.required "publicationGroup" Jdec.int |
| 323 | 323 | |> Jpipe.required "publicationStage" Jdec.string |
| 324 | 324 | |> Jpipe.required "query" query |
| 325 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 325 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 326 | 326 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 327 | 327 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| 328 | 328 | |> Jpipe.required "tableAuthor" owner |
| 329 | 329 | |> Jpipe.required "tableId" Jdec.int |
| 330 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 330 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 331 | 331 | |> Jpipe.required "totalTimesRated" Jdec.int |
| 332 | 332 | |> Jpipe.required "viewCount" Jdec.int |
| 333 | 333 | |> Jpipe.required "viewLastModified" Jdec.int |
| @@ -382,7 +382,7 @@ column = | ||
| 382 | 382 | |> Jpipe.custom (optionalField "cachedContents" (Jdec.nullable cachedContents) Nothing) |
| 383 | 383 | |> Jpipe.required "dataTypeName" typeName |
| 384 | 384 | |> Jpipe.required "fieldName" Jdec.string |
| 385 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 385 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 386 | 386 | |> Jpipe.required "format" format |
| 387 | 387 | |> Jpipe.required "id" Jdec.int |
| 388 | 388 | |> Jpipe.required "name" Jdec.string |
| @@ -414,7 +414,7 @@ cachedContents = | ||
| 414 | 414 | |> Jpipe.required "non_null" Jdec.int |
| 415 | 415 | |> Jpipe.required "null" Jdec.int |
| 416 | 416 | |> Jpipe.required "smallest" Jdec.string |
| 417 | - |> Jpipe.required "top" (Jdec.list top) | |
| 417 | + |> Jpipe.required "top" (Jdec.list top ) | |
| 418 | 418 | |
| 419 | 419 | encodeCachedContents : CachedContents -> Jenc.Value |
| 420 | 420 | encodeCachedContents x = |
| @@ -472,7 +472,7 @@ encodeFormat x = | ||
| 472 | 472 | grant : Jdec.Decoder Grant |
| 473 | 473 | grant = |
| 474 | 474 | Jdec.succeed Grant |
| 475 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 475 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 476 | 476 | |> Jpipe.required "type" Jdec.string |
| 477 | 477 | |> Jpipe.required "inherited" Jdec.bool |
| 478 | 478 | |
| @@ -487,8 +487,8 @@ encodeGrant x = | ||
| 487 | 487 | metadata : Jdec.Decoder Metadata |
| 488 | 488 | metadata = |
| 489 | 489 | Jdec.succeed Metadata |
| 490 | - |> Jpipe.required "attachments" (Jdec.list attachment) | |
| 491 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 490 | + |> Jpipe.required "attachments" (Jdec.list attachment ) | |
| 491 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 492 | 492 | |> Jpipe.required "custom_fields" customFields |
| 493 | 493 | |> Jpipe.required "jsonQuery" jsonQuery |
| 494 | 494 | |> Jpipe.required "rdfSubject" Jdec.string |
| @@ -621,7 +621,7 @@ encodeNotes x = | ||
| 621 | 621 | jsonQuery : Jdec.Decoder JSONQuery |
| 622 | 622 | jsonQuery = |
| 623 | 623 | Jdec.succeed JSONQuery |
| 624 | - |> Jpipe.required "order" (Jdec.list order) | |
| 624 | + |> Jpipe.required "order" (Jdec.list order ) | |
| 625 | 625 | |
| 626 | 626 | encodeJSONQuery : JSONQuery -> Jenc.Value |
| 627 | 627 | encodeJSONQuery x = |
| @@ -672,7 +672,7 @@ owner = | ||
| 672 | 672 | |> Jpipe.required "profileImageUrlLarge" Jdec.string |
| 673 | 673 | |> Jpipe.required "profileImageUrlMedium" Jdec.string |
| 674 | 674 | |> Jpipe.required "profileImageUrlSmall" Jdec.string |
| 675 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 675 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 676 | 676 | |> Jpipe.required "roleName" Jdec.string |
| 677 | 677 | |> Jpipe.required "screenName" Jdec.string |
| 678 | 678 | |
| @@ -692,7 +692,7 @@ encodeOwner x = | ||
| 692 | 692 | query : Jdec.Decoder Query |
| 693 | 693 | query = |
| 694 | 694 | Jdec.succeed Query |
| 695 | - |> Jpipe.required "orderBys" (Jdec.list orderBy) | |
| 695 | + |> Jpipe.required "orderBys" (Jdec.list orderBy ) | |
| 696 | 696 | |
| 697 | 697 | encodeQuery : Query -> Jenc.Value |
| 698 | 698 | encodeQuery x = |
Test case
1 generated file · +14 −14test/inputs/json/misc/617e8.json
Melmdefault / QuickType.elm+14 −14
| @@ -255,7 +255,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 255 | 255 | quickType : Jdec.Decoder QuickType |
| 256 | 256 | quickType = |
| 257 | 257 | Jdec.succeed QuickType |
| 258 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 258 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 259 | 259 | |> Jpipe.required "meta" meta |
| 260 | 260 | |
| 261 | 261 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -297,13 +297,13 @@ view = | ||
| 297 | 297 | |> Jpipe.required "attributionLink" Jdec.string |
| 298 | 298 | |> Jpipe.required "averageRating" Jdec.int |
| 299 | 299 | |> Jpipe.required "category" Jdec.string |
| 300 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 300 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 301 | 301 | |> Jpipe.required "createdAt" Jdec.int |
| 302 | 302 | |> Jpipe.required "description" Jdec.string |
| 303 | 303 | |> Jpipe.required "displayType" Jdec.string |
| 304 | 304 | |> Jpipe.required "downloadCount" Jdec.int |
| 305 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 306 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 305 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 306 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 307 | 307 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 308 | 308 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 309 | 309 | |> Jpipe.required "id" Jdec.string |
| @@ -321,12 +321,12 @@ view = | ||
| 321 | 321 | |> Jpipe.required "publicationGroup" Jdec.int |
| 322 | 322 | |> Jpipe.required "publicationStage" Jdec.string |
| 323 | 323 | |> Jpipe.required "query" query |
| 324 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 324 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 325 | 325 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 326 | 326 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| 327 | 327 | |> Jpipe.required "tableAuthor" owner |
| 328 | 328 | |> Jpipe.required "tableId" Jdec.int |
| 329 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 329 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 330 | 330 | |> Jpipe.required "totalTimesRated" Jdec.int |
| 331 | 331 | |> Jpipe.required "viewCount" Jdec.int |
| 332 | 332 | |> Jpipe.required "viewLastModified" Jdec.int |
| @@ -382,7 +382,7 @@ column = | ||
| 382 | 382 | |> Jpipe.required "dataTypeName" typeName |
| 383 | 383 | |> Jpipe.custom (optionalField "description" (Jdec.nullable Jdec.string) Nothing) |
| 384 | 384 | |> Jpipe.required "fieldName" Jdec.string |
| 385 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 385 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 386 | 386 | |> Jpipe.required "format" format |
| 387 | 387 | |> Jpipe.required "id" Jdec.int |
| 388 | 388 | |> Jpipe.required "name" Jdec.string |
| @@ -415,7 +415,7 @@ cachedContents = | ||
| 415 | 415 | |> Jpipe.required "non_null" Jdec.int |
| 416 | 416 | |> Jpipe.required "null" Jdec.int |
| 417 | 417 | |> Jpipe.required "smallest" Jdec.string |
| 418 | - |> Jpipe.required "top" (Jdec.list top) | |
| 418 | + |> Jpipe.required "top" (Jdec.list top ) | |
| 419 | 419 | |
| 420 | 420 | encodeCachedContents : CachedContents -> Jenc.Value |
| 421 | 421 | encodeCachedContents x = |
| @@ -473,7 +473,7 @@ encodeFormat x = | ||
| 473 | 473 | grant : Jdec.Decoder Grant |
| 474 | 474 | grant = |
| 475 | 475 | Jdec.succeed Grant |
| 476 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 476 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 477 | 477 | |> Jpipe.required "type" Jdec.string |
| 478 | 478 | |> Jpipe.required "inherited" Jdec.bool |
| 479 | 479 | |
| @@ -488,8 +488,8 @@ encodeGrant x = | ||
| 488 | 488 | metadata : Jdec.Decoder Metadata |
| 489 | 489 | metadata = |
| 490 | 490 | Jdec.succeed Metadata |
| 491 | - |> Jpipe.required "attachments" (Jdec.list attachment) | |
| 492 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 491 | + |> Jpipe.required "attachments" (Jdec.list attachment ) | |
| 492 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 493 | 493 | |> Jpipe.required "custom_fields" customFields |
| 494 | 494 | |> Jpipe.required "jsonQuery" jsonQuery |
| 495 | 495 | |> Jpipe.required "rdfSubject" Jdec.string |
| @@ -618,7 +618,7 @@ encodeNotes x = | ||
| 618 | 618 | jsonQuery : Jdec.Decoder JSONQuery |
| 619 | 619 | jsonQuery = |
| 620 | 620 | Jdec.succeed JSONQuery |
| 621 | - |> Jpipe.required "order" (Jdec.list order) | |
| 621 | + |> Jpipe.required "order" (Jdec.list order ) | |
| 622 | 622 | |
| 623 | 623 | encodeJSONQuery : JSONQuery -> Jenc.Value |
| 624 | 624 | encodeJSONQuery x = |
| @@ -669,7 +669,7 @@ owner = | ||
| 669 | 669 | |> Jpipe.required "profileImageUrlLarge" Jdec.string |
| 670 | 670 | |> Jpipe.required "profileImageUrlMedium" Jdec.string |
| 671 | 671 | |> Jpipe.required "profileImageUrlSmall" Jdec.string |
| 672 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 672 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 673 | 673 | |> Jpipe.required "roleName" Jdec.string |
| 674 | 674 | |> Jpipe.required "screenName" Jdec.string |
| 675 | 675 | |
| @@ -689,7 +689,7 @@ encodeOwner x = | ||
| 689 | 689 | query : Jdec.Decoder Query |
| 690 | 690 | query = |
| 691 | 691 | Jdec.succeed Query |
| 692 | - |> Jpipe.required "orderBys" (Jdec.list orderBy) | |
| 692 | + |> Jpipe.required "orderBys" (Jdec.list orderBy ) | |
| 693 | 693 | |
| 694 | 694 | encodeQuery : Query -> Jenc.Value |
| 695 | 695 | encodeQuery x = |
Test case
1 generated file · +11 −11test/inputs/json/misc/65dec.json
Melmdefault / QuickType.elm+11 −11
| @@ -136,9 +136,9 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 136 | 136 | quickType : Jdec.Decoder QuickType |
| 137 | 137 | quickType = |
| 138 | 138 | Jdec.succeed QuickType |
| 139 | - |> Jpipe.required "booster" (Jdec.list Jdec.string) | |
| 139 | + |> Jpipe.required "booster" (Jdec.list Jdec.string ) | |
| 140 | 140 | |> Jpipe.required "border" Jdec.string |
| 141 | - |> Jpipe.required "cards" (Jdec.list card) | |
| 141 | + |> Jpipe.required "cards" (Jdec.list card ) | |
| 142 | 142 | |> Jpipe.required "code" Jdec.string |
| 143 | 143 | |> Jpipe.required "gathererCode" Jdec.string |
| 144 | 144 | |> Jpipe.required "magicCardsInfoCode" Jdec.string |
| @@ -170,13 +170,13 @@ card = | ||
| 170 | 170 | |> Jpipe.required "artist" Jdec.string |
| 171 | 171 | |> Jpipe.required "type" Jdec.string |
| 172 | 172 | |> Jpipe.required "cmc" Jdec.int |
| 173 | - |> Jpipe.custom (optionalField "colorIdentity" (Jdec.nullable (Jdec.list colorIdentity)) Nothing) | |
| 174 | - |> Jpipe.custom (optionalField "colors" (Jdec.nullable (Jdec.list watermark)) Nothing) | |
| 173 | + |> Jpipe.custom (optionalField "colorIdentity" (Jdec.nullable (Jdec.list colorIdentity )) Nothing) | |
| 174 | + |> Jpipe.custom (optionalField "colors" (Jdec.nullable (Jdec.list watermark )) Nothing) | |
| 175 | 175 | |> Jpipe.custom (optionalField "flavor" (Jdec.nullable Jdec.string) Nothing) |
| 176 | 176 | |> Jpipe.required "id" Jdec.string |
| 177 | 177 | |> Jpipe.required "imageName" Jdec.string |
| 178 | 178 | |> Jpipe.required "layout" layout |
| 179 | - |> Jpipe.required "legalities" (Jdec.list legalityElement) | |
| 179 | + |> Jpipe.required "legalities" (Jdec.list legalityElement ) | |
| 180 | 180 | |> Jpipe.custom (optionalField "manaCost" (Jdec.nullable Jdec.string) Nothing) |
| 181 | 181 | |> Jpipe.custom (optionalField "mciNumber" (Jdec.nullable Jdec.string) Nothing) |
| 182 | 182 | |> Jpipe.required "multiverseid" Jdec.int |
| @@ -184,16 +184,16 @@ card = | ||
| 184 | 184 | |> Jpipe.required "originalText" Jdec.string |
| 185 | 185 | |> Jpipe.required "originalType" Jdec.string |
| 186 | 186 | |> Jpipe.custom (optionalField "power" (Jdec.nullable Jdec.string) Nothing) |
| 187 | - |> Jpipe.required "printings" (Jdec.list Jdec.string) | |
| 187 | + |> Jpipe.required "printings" (Jdec.list Jdec.string ) | |
| 188 | 188 | |> Jpipe.required "rarity" rarity |
| 189 | 189 | |> Jpipe.custom (optionalField "reserved" (Jdec.nullable Jdec.bool) Nothing) |
| 190 | - |> Jpipe.custom (optionalField "rulings" (Jdec.nullable (Jdec.list ruling)) Nothing) | |
| 191 | - |> Jpipe.custom (optionalField "subtypes" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 192 | - |> Jpipe.custom (optionalField "supertypes" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 190 | + |> Jpipe.custom (optionalField "rulings" (Jdec.nullable (Jdec.list ruling )) Nothing) | |
| 191 | + |> Jpipe.custom (optionalField "subtypes" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 192 | + |> Jpipe.custom (optionalField "supertypes" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 193 | 193 | |> Jpipe.custom (optionalField "text" (Jdec.nullable Jdec.string) Nothing) |
| 194 | 194 | |> Jpipe.custom (optionalField "toughness" (Jdec.nullable Jdec.string) Nothing) |
| 195 | - |> Jpipe.required "types" (Jdec.list purpleType) | |
| 196 | - |> Jpipe.custom (optionalField "variations" (Jdec.nullable (Jdec.list Jdec.int)) Nothing) | |
| 195 | + |> Jpipe.required "types" (Jdec.list purpleType ) | |
| 196 | + |> Jpipe.custom (optionalField "variations" (Jdec.nullable (Jdec.list Jdec.int )) Nothing) | |
| 197 | 197 | |> Jpipe.custom (optionalField "watermark" (Jdec.nullable watermark) Nothing) |
| 198 | 198 | |
| 199 | 199 | encodeCard : Card -> Jenc.Value |
Test case
1 generated file · +6 −6test/inputs/json/misc/66121.json
Melmdefault / QuickType.elm+6 −6
| @@ -88,7 +88,7 @@ optionalField key decoder fallback = | ||
| 88 | 88 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 89 | 89 | |
| 90 | 90 | quickType : Jdec.Decoder QuickType |
| 91 | -quickType = Jdec.list quickTypeElement | |
| 91 | +quickType = Jdec.list quickTypeElement | |
| 92 | 92 | |
| 93 | 93 | quickTypeToString : QuickType -> String |
| 94 | 94 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -97,13 +97,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 97 | 97 | quickTypeElement = |
| 98 | 98 | Jdec.succeed QuickTypeElement |
| 99 | 99 | |> Jpipe.required "id" Jdec.string |
| 100 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 101 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 102 | - |> Jpipe.required "links" (Jdec.list link) | |
| 100 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 101 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 102 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 103 | 103 | |> Jpipe.required "name" Jdec.string |
| 104 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 104 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 105 | 105 | |> Jpipe.required "superseded_by" (Jdec.nullable Jdec.string) |
| 106 | - |> Jpipe.required "text" (Jdec.list text) | |
| 106 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 107 | 107 | |
| 108 | 108 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 109 | 109 | encodeQuickTypeElement x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/67c03.json
Melmdefault / QuickType.elm+1 −1
| @@ -50,7 +50,7 @@ quickType = | ||
| 50 | 50 | Jdec.succeed QuickType |
| 51 | 51 | |> Jpipe.required "message" Jdec.string |
| 52 | 52 | |> Jpipe.required "number" Jdec.int |
| 53 | - |> Jpipe.required "people" (Jdec.list person) | |
| 53 | + |> Jpipe.required "people" (Jdec.list person ) | |
| 54 | 54 | |
| 55 | 55 | encodeQuickType : QuickType -> Jenc.Value |
| 56 | 56 | encodeQuickType x = |
Test case
1 generated file · +3 −3test/inputs/json/misc/68c30.json
Melmdefault / QuickType.elm+3 −3
| @@ -74,7 +74,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 74 | 74 | quickType : Jdec.Decoder QuickType |
| 75 | 75 | quickType = |
| 76 | 76 | Jdec.succeed QuickType |
| 77 | - |> Jpipe.required "txs" (Jdec.list tx) | |
| 77 | + |> Jpipe.required "txs" (Jdec.list tx ) | |
| 78 | 78 | |
| 79 | 79 | encodeQuickType : QuickType -> Jenc.Value |
| 80 | 80 | encodeQuickType x = |
| @@ -87,9 +87,9 @@ tx = | ||
| 87 | 87 | Jdec.succeed Tx |
| 88 | 88 | |> Jpipe.required "double_spend" Jdec.bool |
| 89 | 89 | |> Jpipe.required "hash" Jdec.string |
| 90 | - |> Jpipe.required "inputs" (Jdec.list input) | |
| 90 | + |> Jpipe.required "inputs" (Jdec.list input ) | |
| 91 | 91 | |> Jpipe.required "lock_time" Jdec.int |
| 92 | - |> Jpipe.required "out" (Jdec.list out) | |
| 92 | + |> Jpipe.required "out" (Jdec.list out ) | |
| 93 | 93 | |> Jpipe.required "relayed_by" Jdec.string |
| 94 | 94 | |> Jpipe.required "size" Jdec.int |
| 95 | 95 | |> Jpipe.required "time" Jdec.int |
Test case
1 generated file · +5 −5test/inputs/json/misc/6c155.json
Melmdefault / QuickType.elm+5 −5
| @@ -100,7 +100,7 @@ quickType : Jdec.Decoder QuickType | ||
| 100 | 100 | quickType = |
| 101 | 101 | Jdec.succeed QuickType |
| 102 | 102 | |> Jpipe.required "metadata" metadata |
| 103 | - |> Jpipe.required "results" (Jdec.list result) | |
| 103 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 104 | 104 | |
| 105 | 105 | encodeQuickType : QuickType -> Jenc.Value |
| 106 | 106 | encodeQuickType x = |
| @@ -155,17 +155,17 @@ encodeResultset x = | ||
| 155 | 155 | result : Jdec.Decoder Result |
| 156 | 156 | result = |
| 157 | 157 | Jdec.succeed Result |
| 158 | - |> Jpipe.required "attachment" (Jdec.list Jdec.value) | |
| 158 | + |> Jpipe.required "attachment" (Jdec.list Jdec.value ) | |
| 159 | 159 | |> Jpipe.required "body" Jdec.string |
| 160 | 160 | |> Jpipe.required "changed" Jdec.string |
| 161 | - |> Jpipe.required "component" (Jdec.list component) | |
| 161 | + |> Jpipe.required "component" (Jdec.list component ) | |
| 162 | 162 | |> Jpipe.required "created" Jdec.string |
| 163 | 163 | |> Jpipe.required "date" Jdec.string |
| 164 | - |> Jpipe.required "image" (Jdec.list Jdec.value) | |
| 164 | + |> Jpipe.required "image" (Jdec.list Jdec.value ) | |
| 165 | 165 | |> Jpipe.required "location" location |
| 166 | 166 | |> Jpipe.required "teaser" (Jdec.null ()) |
| 167 | 167 | |> Jpipe.required "title" Jdec.string |
| 168 | - |> Jpipe.required "topic" (Jdec.list Jdec.value) | |
| 168 | + |> Jpipe.required "topic" (Jdec.list Jdec.value ) | |
| 169 | 169 | |> Jpipe.required "url" Jdec.string |
| 170 | 170 | |> Jpipe.required "uuid" Jdec.string |
| 171 | 171 | |> Jpipe.required "vuuid" Jdec.string |
Test case
1 generated file · +6 −6test/inputs/json/misc/6de06.json
Melmdefault / QuickType.elm+6 −6
| @@ -217,7 +217,7 @@ quickTypeData = | ||
| 217 | 217 | Jdec.succeed QuickTypeData |
| 218 | 218 | |> Jpipe.required "after" Jdec.string |
| 219 | 219 | |> Jpipe.required "before" (Jdec.null ()) |
| 220 | - |> Jpipe.required "children" (Jdec.list child) | |
| 220 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 221 | 221 | |> Jpipe.required "modhash" Jdec.string |
| 222 | 222 | |
| 223 | 223 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -276,7 +276,7 @@ childData = | ||
| 276 | 276 | |> Jpipe.required "locked" Jdec.bool |
| 277 | 277 | |> Jpipe.required "media" (Jdec.nullable media) |
| 278 | 278 | |> Jpipe.required "media_embed" mediaEmbed |
| 279 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 279 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 280 | 280 | |> Jpipe.required "name" Jdec.string |
| 281 | 281 | |> Jpipe.required "num_comments" Jdec.int |
| 282 | 282 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -306,7 +306,7 @@ childData = | ||
| 306 | 306 | |> Jpipe.required "title" Jdec.string |
| 307 | 307 | |> Jpipe.required "ups" Jdec.int |
| 308 | 308 | |> Jpipe.required "url" Jdec.string |
| 309 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 309 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 310 | 310 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 311 | 311 | |> Jpipe.required "visited" Jdec.bool |
| 312 | 312 | |
| @@ -463,7 +463,7 @@ preview : Jdec.Decoder Preview | ||
| 463 | 463 | preview = |
| 464 | 464 | Jdec.succeed Preview |
| 465 | 465 | |> Jpipe.required "enabled" Jdec.bool |
| 466 | - |> Jpipe.required "images" (Jdec.list imageElement) | |
| 466 | + |> Jpipe.required "images" (Jdec.list imageElement ) | |
| 467 | 467 | |
| 468 | 468 | encodePreview : Preview -> Jenc.Value |
| 469 | 469 | encodePreview x = |
| @@ -476,7 +476,7 @@ imageElement : Jdec.Decoder ImageElement | ||
| 476 | 476 | imageElement = |
| 477 | 477 | Jdec.succeed ImageElement |
| 478 | 478 | |> Jpipe.required "id" Jdec.string |
| 479 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 479 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 480 | 480 | |> Jpipe.required "source" source |
| 481 | 481 | |> Jpipe.required "variants" variants |
| 482 | 482 | |
| @@ -524,7 +524,7 @@ encodeVariants x = | ||
| 524 | 524 | gif : Jdec.Decoder GIF |
| 525 | 525 | gif = |
| 526 | 526 | Jdec.succeed GIF |
| 527 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 527 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 528 | 528 | |> Jpipe.required "source" source |
| 529 | 529 | |
| 530 | 530 | encodeGIF : GIF -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/misc/6dec6.json
Melmdefault / QuickType.elm+1 −1
| @@ -282,7 +282,7 @@ item = | ||
| 282 | 282 | Jdec.succeed Item |
| 283 | 283 | |> Jpipe.required "condition" condition |
| 284 | 284 | |> Jpipe.required "description" Jdec.string |
| 285 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 285 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 286 | 286 | |> Jpipe.required "guid" guid |
| 287 | 287 | |> Jpipe.required "lat" Jdec.string |
| 288 | 288 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/6eb00.json
Melmdefault / QuickType.elm+1 −1
| @@ -40,7 +40,7 @@ optionalField key decoder fallback = | ||
| 40 | 40 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 41 | 41 | |
| 42 | 42 | quickType : Jdec.Decoder QuickType |
| 43 | -quickType = Jdec.list quickTypeElement | |
| 43 | +quickType = Jdec.list quickTypeElement | |
| 44 | 44 | |
| 45 | 45 | quickTypeToString : QuickType -> String |
| 46 | 46 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/734ad.json
Melmdefault / QuickType.elm+1 −1
| @@ -124,7 +124,7 @@ quickType = | ||
| 124 | 124 | |> Jpipe.required "next" Jdec.string |
| 125 | 125 | |> Jpipe.required "offset" Jdec.int |
| 126 | 126 | |> Jpipe.required "previous" Jdec.bool |
| 127 | - |> Jpipe.required "results" (Jdec.list result) | |
| 127 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 128 | 128 | |
| 129 | 129 | encodeQuickType : QuickType -> Jenc.Value |
| 130 | 130 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/7681c.json
Melmdefault / QuickType.elm+1 −1
| @@ -168,7 +168,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 168 | 168 | quickType : Jdec.Decoder QuickType |
| 169 | 169 | quickType = |
| 170 | 170 | Jdec.succeed QuickType |
| 171 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 171 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 172 | 172 | |> Jpipe.required "meta" meta |
| 173 | 173 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +6 −6test/inputs/json/misc/76ae1.json
Melmdefault / QuickType.elm+6 −6
| @@ -256,8 +256,8 @@ quickType = | ||
| 256 | 256 | |> Jpipe.required "host" Jdec.string |
| 257 | 257 | |> Jpipe.required "info" info |
| 258 | 258 | |> Jpipe.required "paths" paths |
| 259 | - |> Jpipe.required "produces" (Jdec.list Jdec.string) | |
| 260 | - |> Jpipe.required "schemes" (Jdec.list Jdec.string) | |
| 259 | + |> Jpipe.required "produces" (Jdec.list Jdec.string ) | |
| 260 | + |> Jpipe.required "schemes" (Jdec.list Jdec.string ) | |
| 261 | 261 | |> Jpipe.required "swagger" Jdec.string |
| 262 | 262 | |
| 263 | 263 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -556,10 +556,10 @@ businessServiceProvidersSearchGet : Jdec.Decoder BusinessServiceProvidersSearchG | ||
| 556 | 556 | businessServiceProvidersSearchGet = |
| 557 | 557 | Jdec.succeed BusinessServiceProvidersSearchGet |
| 558 | 558 | |> Jpipe.required "description" Jdec.string |
| 559 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 559 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 560 | 560 | |> Jpipe.required "responses" purpleResponses |
| 561 | 561 | |> Jpipe.required "summary" Jdec.string |
| 562 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 562 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 563 | 563 | |
| 564 | 564 | encodeBusinessServiceProvidersSearchGet : BusinessServiceProvidersSearchGet -> Jenc.Value |
| 565 | 565 | encodeBusinessServiceProvidersSearchGet x = |
| @@ -655,10 +655,10 @@ consolidatedScreeningListSearchGet : Jdec.Decoder ConsolidatedScreeningListSearc | ||
| 655 | 655 | consolidatedScreeningListSearchGet = |
| 656 | 656 | Jdec.succeed ConsolidatedScreeningListSearchGet |
| 657 | 657 | |> Jpipe.required "description" Jdec.string |
| 658 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 658 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 659 | 659 | |> Jpipe.required "responses" fluffyResponses |
| 660 | 660 | |> Jpipe.required "summary" Jdec.string |
| 661 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 661 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 662 | 662 | |
| 663 | 663 | encodeConsolidatedScreeningListSearchGet : ConsolidatedScreeningListSearchGet -> Jenc.Value |
| 664 | 664 | encodeConsolidatedScreeningListSearchGet x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/77392.json
Melmdefault / QuickType.elm+1 −1
| @@ -65,7 +65,7 @@ optionalField key decoder fallback = | ||
| 65 | 65 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 66 | 66 | |
| 67 | 67 | quickType : Jdec.Decoder QuickType |
| 68 | -quickType = Jdec.list quickTypeElement | |
| 68 | +quickType = Jdec.list quickTypeElement | |
| 69 | 69 | |
| 70 | 70 | quickTypeToString : QuickType -> String |
| 71 | 71 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +4 −4test/inputs/json/misc/7d397.json
Melmdefault / QuickType.elm+4 −4
| @@ -134,8 +134,8 @@ quickType = | ||
| 134 | 134 | |> Jpipe.required "host" Jdec.string |
| 135 | 135 | |> Jpipe.required "info" info |
| 136 | 136 | |> Jpipe.required "paths" paths |
| 137 | - |> Jpipe.required "produces" (Jdec.list Jdec.string) | |
| 138 | - |> Jpipe.required "schemes" (Jdec.list Jdec.string) | |
| 137 | + |> Jpipe.required "produces" (Jdec.list Jdec.string ) | |
| 138 | + |> Jpipe.required "schemes" (Jdec.list Jdec.string ) | |
| 139 | 139 | |> Jpipe.required "swagger" Jdec.string |
| 140 | 140 | |
| 141 | 141 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -240,10 +240,10 @@ get : Jdec.Decoder Get | ||
| 240 | 240 | get = |
| 241 | 241 | Jdec.succeed Get |
| 242 | 242 | |> Jpipe.required "description" Jdec.string |
| 243 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 243 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 244 | 244 | |> Jpipe.required "responses" responses |
| 245 | 245 | |> Jpipe.required "summary" Jdec.string |
| 246 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 246 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 247 | 247 | |
| 248 | 248 | encodeGet : Get -> Jenc.Value |
| 249 | 249 | encodeGet x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/7dfa6.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/7eb30.json
Melmdefault / QuickType.elm+1 −1
| @@ -94,7 +94,7 @@ quickType = | ||
| 94 | 94 | |> Jpipe.required "count" Jdec.int |
| 95 | 95 | |> Jpipe.required "next" Jdec.string |
| 96 | 96 | |> Jpipe.required "previous" (Jdec.null ()) |
| 97 | - |> Jpipe.required "results" (Jdec.list result) | |
| 97 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 98 | 98 | |
| 99 | 99 | encodeQuickType : QuickType -> Jenc.Value |
| 100 | 100 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/7f568.json
Melmdefault / QuickType.elm+1 −1
| @@ -70,7 +70,7 @@ optionalField key decoder fallback = | ||
| 70 | 70 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 71 | 71 | |
| 72 | 72 | quickType : Jdec.Decoder QuickType |
| 73 | -quickType = Jdec.list quickTypeElement | |
| 73 | +quickType = Jdec.list quickTypeElement | |
| 74 | 74 | |
| 75 | 75 | quickTypeToString : QuickType -> String |
| 76 | 76 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +2 −2test/inputs/json/misc/7fbfb.json
Melmdefault / QuickType.elm+2 −2
| @@ -71,7 +71,7 @@ optionalField key decoder fallback = | ||
| 71 | 71 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 72 | 72 | |
| 73 | 73 | quickType : Jdec.Decoder QuickType |
| 74 | -quickType = Jdec.list quickTypeUnion | |
| 74 | +quickType = Jdec.list quickTypeUnion | |
| 75 | 75 | |
| 76 | 76 | quickTypeToString : QuickType -> String |
| 77 | 77 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -79,7 +79,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 79 | 79 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 80 | 80 | quickTypeUnion = |
| 81 | 81 | Jdec.oneOf |
| 82 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 82 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 83 | 83 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 84 | 84 | ] |
Test case
1 generated file · +1 −1test/inputs/json/misc/80aff.json
Melmdefault / QuickType.elm+1 −1
| @@ -68,7 +68,7 @@ quickType = | ||
| 68 | 68 | |> Jpipe.required "next" Jdec.bool |
| 69 | 69 | |> Jpipe.required "offset" Jdec.int |
| 70 | 70 | |> Jpipe.required "previous" Jdec.bool |
| 71 | - |> Jpipe.required "results" (Jdec.list result) | |
| 71 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 72 | 72 | |
| 73 | 73 | encodeQuickType : QuickType -> Jenc.Value |
| 74 | 74 | encodeQuickType x = |
Test case
1 generated file · +5 −5test/inputs/json/misc/8592b.json
Melmdefault / QuickType.elm+5 −5
| @@ -193,7 +193,7 @@ quickTypeData = | ||
| 193 | 193 | Jdec.succeed QuickTypeData |
| 194 | 194 | |> Jpipe.required "after" Jdec.string |
| 195 | 195 | |> Jpipe.required "before" (Jdec.null ()) |
| 196 | - |> Jpipe.required "children" (Jdec.list child) | |
| 196 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 197 | 197 | |> Jpipe.required "modhash" Jdec.string |
| 198 | 198 | |
| 199 | 199 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -252,7 +252,7 @@ childData = | ||
| 252 | 252 | |> Jpipe.required "locked" Jdec.bool |
| 253 | 253 | |> Jpipe.required "media" (Jdec.null ()) |
| 254 | 254 | |> Jpipe.required "media_embed" mediaEmbed |
| 255 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 255 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 256 | 256 | |> Jpipe.required "name" Jdec.string |
| 257 | 257 | |> Jpipe.required "num_comments" Jdec.int |
| 258 | 258 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -282,7 +282,7 @@ childData = | ||
| 282 | 282 | |> Jpipe.required "title" Jdec.string |
| 283 | 283 | |> Jpipe.required "ups" Jdec.int |
| 284 | 284 | |> Jpipe.required "url" Jdec.string |
| 285 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 285 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 286 | 286 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 287 | 287 | |> Jpipe.required "visited" Jdec.bool |
| 288 | 288 | |
| @@ -382,7 +382,7 @@ preview : Jdec.Decoder Preview | ||
| 382 | 382 | preview = |
| 383 | 383 | Jdec.succeed Preview |
| 384 | 384 | |> Jpipe.required "enabled" Jdec.bool |
| 385 | - |> Jpipe.required "images" (Jdec.list image) | |
| 385 | + |> Jpipe.required "images" (Jdec.list image ) | |
| 386 | 386 | |
| 387 | 387 | encodePreview : Preview -> Jenc.Value |
| 388 | 388 | encodePreview x = |
| @@ -395,7 +395,7 @@ image : Jdec.Decoder Image | ||
| 395 | 395 | image = |
| 396 | 396 | Jdec.succeed Image |
| 397 | 397 | |> Jpipe.required "id" Jdec.string |
| 398 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 398 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 399 | 399 | |> Jpipe.required "source" source |
| 400 | 400 | |> Jpipe.required "variants" mediaEmbed |
Test case
1 generated file · +1 −1test/inputs/json/misc/88130.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/8a62c.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/908db.json
Melmdefault / QuickType.elm+1 −1
| @@ -51,7 +51,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 51 | 51 | quickType : Jdec.Decoder QuickType |
| 52 | 52 | quickType = |
| 53 | 53 | Jdec.succeed QuickType |
| 54 | - |> Jpipe.required "states" (Jdec.list stateElement) | |
| 54 | + |> Jpipe.required "states" (Jdec.list stateElement ) | |
| 55 | 55 | |
| 56 | 56 | encodeQuickType : QuickType -> Jenc.Value |
| 57 | 57 | encodeQuickType x = |
Test case
1 generated file · +4 −4test/inputs/json/misc/96f7c.json
Melmdefault / QuickType.elm+4 −4
| @@ -45,11 +45,11 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 45 | 45 | quickType : Jdec.Decoder QuickType |
| 46 | 46 | quickType = |
| 47 | 47 | Jdec.succeed QuickType |
| 48 | - |> Jpipe.required "git" (Jdec.list Jdec.string) | |
| 48 | + |> Jpipe.required "git" (Jdec.list Jdec.string ) | |
| 49 | 49 | |> Jpipe.required "github_services_sha" Jdec.string |
| 50 | - |> Jpipe.required "hooks" (Jdec.list Jdec.string) | |
| 51 | - |> Jpipe.required "importer" (Jdec.list Jdec.string) | |
| 52 | - |> Jpipe.required "pages" (Jdec.list Jdec.string) | |
| 50 | + |> Jpipe.required "hooks" (Jdec.list Jdec.string ) | |
| 51 | + |> Jpipe.required "importer" (Jdec.list Jdec.string ) | |
| 52 | + |> Jpipe.required "pages" (Jdec.list Jdec.string ) | |
| 53 | 53 | |> Jpipe.required "verifiable_password_authentication" Jdec.bool |
| 54 | 54 | |
| 55 | 55 | encodeQuickType : QuickType -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/misc/9847b.json
Melmdefault / QuickType.elm+1 −1
| @@ -39,7 +39,7 @@ optionalField key decoder fallback = | ||
| 39 | 39 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 40 | 40 | |
| 41 | 41 | quickType : Jdec.Decoder QuickType |
| 42 | -quickType = Jdec.list quickTypeElement | |
| 42 | +quickType = Jdec.list quickTypeElement | |
| 43 | 43 | |
| 44 | 44 | quickTypeToString : QuickType -> String |
| 45 | 45 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/9929c.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +6 −6test/inputs/json/misc/996bd.json
Melmdefault / QuickType.elm+6 −6
| @@ -87,7 +87,7 @@ optionalField key decoder fallback = | ||
| 87 | 87 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 88 | 88 | |
| 89 | 89 | quickType : Jdec.Decoder QuickType |
| 90 | -quickType = Jdec.list quickTypeElement | |
| 90 | +quickType = Jdec.list quickTypeElement | |
| 91 | 91 | |
| 92 | 92 | quickTypeToString : QuickType -> String |
| 93 | 93 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -96,13 +96,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 96 | 96 | quickTypeElement = |
| 97 | 97 | Jdec.succeed QuickTypeElement |
| 98 | 98 | |> Jpipe.required "id" Jdec.string |
| 99 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 100 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 101 | - |> Jpipe.required "links" (Jdec.list link) | |
| 99 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 100 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 101 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 102 | 102 | |> Jpipe.required "name" Jdec.string |
| 103 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 103 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 104 | 104 | |> Jpipe.required "superseded_by" (Jdec.nullable Jdec.string) |
| 105 | - |> Jpipe.required "text" (Jdec.list text) | |
| 105 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 106 | 106 | |
| 107 | 107 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 108 | 108 | encodeQuickTypeElement x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/9a503.json
Melmdefault / QuickType.elm+6 −6
| @@ -70,7 +70,7 @@ optionalField key decoder fallback = | ||
| 70 | 70 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 71 | 71 | |
| 72 | 72 | quickType : Jdec.Decoder QuickType |
| 73 | -quickType = Jdec.list quickTypeElement | |
| 73 | +quickType = Jdec.list quickTypeElement | |
| 74 | 74 | |
| 75 | 75 | quickTypeToString : QuickType -> String |
| 76 | 76 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -79,13 +79,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 79 | 79 | quickTypeElement = |
| 80 | 80 | Jdec.succeed QuickTypeElement |
| 81 | 81 | |> Jpipe.required "id" Jdec.string |
| 82 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 83 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 84 | - |> Jpipe.required "links" (Jdec.list link) | |
| 82 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 83 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 84 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 85 | 85 | |> Jpipe.required "name" Jdec.string |
| 86 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 86 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 87 | 87 | |> Jpipe.required "superseded_by" (Jdec.null ()) |
| 88 | - |> Jpipe.required "text" (Jdec.list text) | |
| 88 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 89 | 89 | |
| 90 | 90 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 91 | 91 | encodeQuickTypeElement x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/9ac3b.json
Melmdefault / QuickType.elm+1 −1
| @@ -82,7 +82,7 @@ quickType = | ||
| 82 | 82 | |> Jpipe.required "next" Jdec.string |
| 83 | 83 | |> Jpipe.required "offset" Jdec.int |
| 84 | 84 | |> Jpipe.required "previous" Jdec.bool |
| 85 | - |> Jpipe.required "results" (Jdec.list result) | |
| 85 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 86 | 86 | |
| 87 | 87 | encodeQuickType : QuickType -> Jenc.Value |
| 88 | 88 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/9eed5.json
Melmdefault / QuickType.elm+6 −6
| @@ -69,7 +69,7 @@ optionalField key decoder fallback = | ||
| 69 | 69 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 70 | 70 | |
| 71 | 71 | quickType : Jdec.Decoder QuickType |
| 72 | -quickType = Jdec.list quickTypeElement | |
| 72 | +quickType = Jdec.list quickTypeElement | |
| 73 | 73 | |
| 74 | 74 | quickTypeToString : QuickType -> String |
| 75 | 75 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -78,13 +78,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 78 | 78 | quickTypeElement = |
| 79 | 79 | Jdec.succeed QuickTypeElement |
| 80 | 80 | |> Jpipe.required "id" Jdec.string |
| 81 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 82 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 83 | - |> Jpipe.required "links" (Jdec.list link) | |
| 81 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 82 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 83 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 84 | 84 | |> Jpipe.required "name" Jdec.string |
| 85 | - |> Jpipe.required "other_names" (Jdec.list Jdec.value) | |
| 85 | + |> Jpipe.required "other_names" (Jdec.list Jdec.value ) | |
| 86 | 86 | |> Jpipe.required "superseded_by" (Jdec.null ()) |
| 87 | - |> Jpipe.required "text" (Jdec.list text) | |
| 87 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 88 | 88 | |
| 89 | 89 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 90 | 90 | encodeQuickTypeElement x = |
Test case
1 generated file · +2 −2test/inputs/json/misc/a0496.json
Melmdefault / QuickType.elm+2 −2
| @@ -68,8 +68,8 @@ quickType : Jdec.Decoder QuickType | ||
| 68 | 68 | quickType = |
| 69 | 69 | Jdec.succeed QuickType |
| 70 | 70 | |> Jpipe.required "code" Jdec.string |
| 71 | - |> Jpipe.required "column_names" (Jdec.list Jdec.string) | |
| 72 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 71 | + |> Jpipe.required "column_names" (Jdec.list Jdec.string ) | |
| 72 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 73 | 73 | |> Jpipe.required "description" Jdec.string |
| 74 | 74 | |> Jpipe.required "display_url" Jdec.string |
| 75 | 75 | |> Jpipe.required "errors" errors |
Test case
1 generated file · +1 −1test/inputs/json/misc/a1eca.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +9 −9test/inputs/json/misc/a3d8c.json
Melmdefault / QuickType.elm+9 −9
| @@ -174,7 +174,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 174 | 174 | quickType : Jdec.Decoder QuickType |
| 175 | 175 | quickType = |
| 176 | 176 | Jdec.succeed QuickType |
| 177 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 177 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 178 | 178 | |> Jpipe.required "meta" meta |
| 179 | 179 | |
| 180 | 180 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -214,12 +214,12 @@ view = | ||
| 214 | 214 | Jdec.succeed View |
| 215 | 215 | |> Jpipe.required "averageRating" Jdec.int |
| 216 | 216 | |> Jpipe.required "category" Jdec.string |
| 217 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 217 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 218 | 218 | |> Jpipe.required "createdAt" Jdec.int |
| 219 | 219 | |> Jpipe.required "displayType" Jdec.string |
| 220 | 220 | |> Jpipe.required "downloadCount" Jdec.int |
| 221 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 222 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 221 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 222 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 223 | 223 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 224 | 224 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 225 | 225 | |> Jpipe.required "id" Jdec.string |
| @@ -239,7 +239,7 @@ view = | ||
| 239 | 239 | |> Jpipe.required "publicationGroup" Jdec.int |
| 240 | 240 | |> Jpipe.required "publicationStage" Jdec.string |
| 241 | 241 | |> Jpipe.required "query" query |
| 242 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 242 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 243 | 243 | |> Jpipe.required "rowClass" Jdec.string |
| 244 | 244 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 245 | 245 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| @@ -298,7 +298,7 @@ column = | ||
| 298 | 298 | |> Jpipe.custom (optionalField "cachedContents" (Jdec.nullable cachedContents) Nothing) |
| 299 | 299 | |> Jpipe.required "dataTypeName" typeName |
| 300 | 300 | |> Jpipe.required "fieldName" Jdec.string |
| 301 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 301 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 302 | 302 | |> Jpipe.required "format" query |
| 303 | 303 | |> Jpipe.required "id" Jdec.int |
| 304 | 304 | |> Jpipe.required "name" Jdec.string |
| @@ -332,7 +332,7 @@ cachedContents = | ||
| 332 | 332 | |> Jpipe.required "null" Jdec.int |
| 333 | 333 | |> Jpipe.required "smallest" Jdec.string |
| 334 | 334 | |> Jpipe.custom (optionalField "sum" (Jdec.nullable Jdec.string) Nothing) |
| 335 | - |> Jpipe.required "top" (Jdec.list top) | |
| 335 | + |> Jpipe.required "top" (Jdec.list top ) | |
| 336 | 336 | |
| 337 | 337 | encodeCachedContents : CachedContents -> Jenc.Value |
| 338 | 338 | encodeCachedContents x = |
| @@ -389,7 +389,7 @@ encodeQuery x = | ||
| 389 | 389 | grant : Jdec.Decoder Grant |
| 390 | 390 | grant = |
| 391 | 391 | Jdec.succeed Grant |
| 392 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 392 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 393 | 393 | |> Jpipe.required "type" Jdec.string |
| 394 | 394 | |> Jpipe.required "inherited" Jdec.bool |
| 395 | 395 | |
| @@ -415,7 +415,7 @@ encodeLicense x = | ||
| 415 | 415 | metadata : Jdec.Decoder Metadata |
| 416 | 416 | metadata = |
| 417 | 417 | Jdec.succeed Metadata |
| 418 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 418 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 419 | 419 | |> Jpipe.required "rdfClass" Jdec.string |
| 420 | 420 | |> Jpipe.required "rdfSubject" Jdec.string |
| 421 | 421 | |> Jpipe.required "renderTypeConfig" renderTypeConfig |
Test case
1 generated file · +1 −1test/inputs/json/misc/a45b0.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/ab0d1.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/abb4b.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/ad8be.json
Melmdefault / QuickType.elm+6 −6
| @@ -112,7 +112,7 @@ optionalField key decoder fallback = | ||
| 112 | 112 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 113 | 113 | |
| 114 | 114 | quickType : Jdec.Decoder QuickType |
| 115 | -quickType = Jdec.list quickTypeElement | |
| 115 | +quickType = Jdec.list quickTypeElement | |
| 116 | 116 | |
| 117 | 117 | quickTypeToString : QuickType -> String |
| 118 | 118 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -121,13 +121,13 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 121 | 121 | quickTypeElement = |
| 122 | 122 | Jdec.succeed QuickTypeElement |
| 123 | 123 | |> Jpipe.required "id" Jdec.string |
| 124 | - |> Jpipe.required "identifiers" (Jdec.list identifier) | |
| 125 | - |> Jpipe.required "keywords" (Jdec.list keyword) | |
| 126 | - |> Jpipe.required "links" (Jdec.list link) | |
| 124 | + |> Jpipe.required "identifiers" (Jdec.list identifier ) | |
| 125 | + |> Jpipe.required "keywords" (Jdec.list keyword ) | |
| 126 | + |> Jpipe.required "links" (Jdec.list link ) | |
| 127 | 127 | |> Jpipe.required "name" Jdec.string |
| 128 | - |> Jpipe.required "other_names" (Jdec.list otherName) | |
| 128 | + |> Jpipe.required "other_names" (Jdec.list otherName ) | |
| 129 | 129 | |> Jpipe.required "superseded_by" (Jdec.nullable Jdec.string) |
| 130 | - |> Jpipe.required "text" (Jdec.list text) | |
| 130 | + |> Jpipe.required "text" (Jdec.list text ) | |
| 131 | 131 | |
| 132 | 132 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 133 | 133 | encodeQuickTypeElement x = |
Test case
1 generated file · +3 −3test/inputs/json/misc/ae7f0.json
Melmdefault / QuickType.elm+3 −3
| @@ -163,7 +163,7 @@ quickTypeData = | ||
| 163 | 163 | Jdec.succeed QuickTypeData |
| 164 | 164 | |> Jpipe.required "after" Jdec.string |
| 165 | 165 | |> Jpipe.required "before" (Jdec.null ()) |
| 166 | - |> Jpipe.required "children" (Jdec.list child) | |
| 166 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 167 | 167 | |> Jpipe.required "modhash" Jdec.string |
| 168 | 168 | |
| 169 | 169 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -222,7 +222,7 @@ childData = | ||
| 222 | 222 | |> Jpipe.required "locked" Jdec.bool |
| 223 | 223 | |> Jpipe.required "media" (Jdec.null ()) |
| 224 | 224 | |> Jpipe.required "media_embed" mediaEmbed |
| 225 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 225 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 226 | 226 | |> Jpipe.required "name" Jdec.string |
| 227 | 227 | |> Jpipe.required "num_comments" Jdec.int |
| 228 | 228 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -248,7 +248,7 @@ childData = | ||
| 248 | 248 | |> Jpipe.required "title" Jdec.string |
| 249 | 249 | |> Jpipe.required "ups" Jdec.int |
| 250 | 250 | |> Jpipe.required "url" Jdec.string |
| 251 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 251 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 252 | 252 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 253 | 253 | |> Jpipe.required "visited" Jdec.bool |
Test case
1 generated file · +2 −2test/inputs/json/misc/ae9ca.json
Melmdefault / QuickType.elm+2 −2
| @@ -94,7 +94,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 94 | 94 | quickType : Jdec.Decoder QuickType |
| 95 | 95 | quickType = |
| 96 | 96 | Jdec.succeed QuickType |
| 97 | - |> Jpipe.required "features" (Jdec.list featureElement) | |
| 97 | + |> Jpipe.required "features" (Jdec.list featureElement ) | |
| 98 | 98 | |> Jpipe.required "name" Jdec.string |
| 99 | 99 | |> Jpipe.required "type" Jdec.string |
| 100 | 100 | |
| @@ -137,7 +137,7 @@ encodeFeatureType x = case x of | ||
| 137 | 137 | geometry : Jdec.Decoder Geometry |
| 138 | 138 | geometry = |
| 139 | 139 | Jdec.succeed Geometry |
| 140 | - |> Jpipe.required "coordinates" (Jdec.list Jdec.float) | |
| 140 | + |> Jpipe.required "coordinates" (Jdec.list Jdec.float ) | |
| 141 | 141 | |> Jpipe.required "type" geometryType |
| 142 | 142 | |
| 143 | 143 | encodeGeometry : Geometry -> Jenc.Value |
Test case
1 generated file · +2 −2test/inputs/json/misc/af2d1.json
Melmdefault / QuickType.elm+2 −2
| @@ -164,7 +164,7 @@ quickType : Jdec.Decoder QuickType | ||
| 164 | 164 | quickType = |
| 165 | 165 | Jdec.succeed QuickType |
| 166 | 166 | |> Jpipe.required "crs" crs |
| 167 | - |> Jpipe.required "features" (Jdec.list featureElement) | |
| 167 | + |> Jpipe.required "features" (Jdec.list featureElement ) | |
| 168 | 168 | |> Jpipe.required "type" Jdec.string |
| 169 | 169 | |> Jpipe.required "totalFeatures" Jdec.int |
| 170 | 170 | |
| @@ -236,7 +236,7 @@ encodeFeatureType x = case x of | ||
| 236 | 236 | geometry : Jdec.Decoder Geometry |
| 237 | 237 | geometry = |
| 238 | 238 | Jdec.succeed Geometry |
| 239 | - |> Jpipe.required "coordinates" (Jdec.list (Jdec.list (Jdec.list (Jdec.list Jdec.float)))) | |
| 239 | + |> Jpipe.required "coordinates" (Jdec.list (Jdec.list (Jdec.list (Jdec.list Jdec.float ) ) ) ) | |
| 240 | 240 | |> Jpipe.required "type" geometryType |
| 241 | 241 | |
| 242 | 242 | encodeGeometry : Geometry -> Jenc.Value |
Test case
1 generated file · +2 −2test/inputs/json/misc/b4865.json
Melmdefault / QuickType.elm+2 −2
| @@ -68,7 +68,7 @@ optionalField key decoder fallback = | ||
| 68 | 68 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 69 | 69 | |
| 70 | 70 | quickType : Jdec.Decoder QuickType |
| 71 | -quickType = Jdec.list quickTypeElement | |
| 71 | +quickType = Jdec.list quickTypeElement | |
| 72 | 72 | |
| 73 | 73 | quickTypeToString : QuickType -> String |
| 74 | 74 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -124,7 +124,7 @@ encodeFall x = case x of | ||
| 124 | 124 | geolocation : Jdec.Decoder Geolocation |
| 125 | 125 | geolocation = |
| 126 | 126 | Jdec.succeed Geolocation |
| 127 | - |> Jpipe.required "coordinates" (Jdec.list Jdec.float) | |
| 127 | + |> Jpipe.required "coordinates" (Jdec.list Jdec.float ) | |
| 128 | 128 | |> Jpipe.required "type" purpleType |
| 129 | 129 | |
| 130 | 130 | encodeGeolocation : Geolocation -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/misc/b6f2c.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/bb1ec.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/misc/be234.json
Melmdefault / QuickType.elm+6 −6
| @@ -235,7 +235,7 @@ quickTypeData = | ||
| 235 | 235 | Jdec.succeed QuickTypeData |
| 236 | 236 | |> Jpipe.required "after" Jdec.string |
| 237 | 237 | |> Jpipe.required "before" (Jdec.null ()) |
| 238 | - |> Jpipe.required "children" (Jdec.list child) | |
| 238 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 239 | 239 | |> Jpipe.required "modhash" Jdec.string |
| 240 | 240 | |
| 241 | 241 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -294,7 +294,7 @@ childData = | ||
| 294 | 294 | |> Jpipe.required "locked" Jdec.bool |
| 295 | 295 | |> Jpipe.required "media" (Jdec.nullable media) |
| 296 | 296 | |> Jpipe.required "media_embed" mediaEmbed |
| 297 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 297 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 298 | 298 | |> Jpipe.required "name" Jdec.string |
| 299 | 299 | |> Jpipe.required "num_comments" Jdec.int |
| 300 | 300 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -324,7 +324,7 @@ childData = | ||
| 324 | 324 | |> Jpipe.required "title" Jdec.string |
| 325 | 325 | |> Jpipe.required "ups" Jdec.int |
| 326 | 326 | |> Jpipe.required "url" Jdec.string |
| 327 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 327 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 328 | 328 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 329 | 329 | |> Jpipe.required "visited" Jdec.bool |
| 330 | 330 | |
| @@ -502,7 +502,7 @@ preview : Jdec.Decoder Preview | ||
| 502 | 502 | preview = |
| 503 | 503 | Jdec.succeed Preview |
| 504 | 504 | |> Jpipe.required "enabled" Jdec.bool |
| 505 | - |> Jpipe.required "images" (Jdec.list imageElement) | |
| 505 | + |> Jpipe.required "images" (Jdec.list imageElement ) | |
| 506 | 506 | |
| 507 | 507 | encodePreview : Preview -> Jenc.Value |
| 508 | 508 | encodePreview x = |
| @@ -515,7 +515,7 @@ imageElement : Jdec.Decoder ImageElement | ||
| 515 | 515 | imageElement = |
| 516 | 516 | Jdec.succeed ImageElement |
| 517 | 517 | |> Jpipe.required "id" Jdec.string |
| 518 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 518 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 519 | 519 | |> Jpipe.required "source" source |
| 520 | 520 | |> Jpipe.required "variants" variants |
| 521 | 521 | |
| @@ -559,7 +559,7 @@ encodeVariants x = | ||
| 559 | 559 | gif : Jdec.Decoder GIF |
| 560 | 560 | gif = |
| 561 | 561 | Jdec.succeed GIF |
| 562 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 562 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 563 | 563 | |> Jpipe.required "source" source |
| 564 | 564 | |
| 565 | 565 | encodeGIF : GIF -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/misc/c3303.json
Melmdefault / QuickType.elm+1 −1
| @@ -165,7 +165,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 165 | 165 | quickType : Jdec.Decoder QuickType |
| 166 | 166 | quickType = |
| 167 | 167 | Jdec.succeed QuickType |
| 168 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 168 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 169 | 169 | |> Jpipe.required "meta" meta |
| 170 | 170 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +1 −1test/inputs/json/misc/c6cfd.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "countries" (Jdec.list country) | |
| 49 | + |> Jpipe.required "countries" (Jdec.list country ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +2 −2test/inputs/json/misc/c8c7e.json
Melmdefault / QuickType.elm+2 −2
| @@ -71,7 +71,7 @@ optionalField key decoder fallback = | ||
| 71 | 71 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 72 | 72 | |
| 73 | 73 | quickType : Jdec.Decoder QuickType |
| 74 | -quickType = Jdec.list quickTypeUnion | |
| 74 | +quickType = Jdec.list quickTypeUnion | |
| 75 | 75 | |
| 76 | 76 | quickTypeToString : QuickType -> String |
| 77 | 77 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -79,7 +79,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 79 | 79 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 80 | 80 | quickTypeUnion = |
| 81 | 81 | Jdec.oneOf |
| 82 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 82 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 83 | 83 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 84 | 84 | ] |
Test case
1 generated file · +2 −2test/inputs/json/misc/cb0cc.json
Melmdefault / QuickType.elm+2 −2
| @@ -66,7 +66,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 66 | 66 | quickType : Jdec.Decoder QuickType |
| 67 | 67 | quickType = |
| 68 | 68 | Jdec.succeed QuickType |
| 69 | - |> Jpipe.required "prizes" (Jdec.list prize) | |
| 69 | + |> Jpipe.required "prizes" (Jdec.list prize ) | |
| 70 | 70 | |
| 71 | 71 | encodeQuickType : QuickType -> Jenc.Value |
| 72 | 72 | encodeQuickType x = |
| @@ -78,7 +78,7 @@ prize : Jdec.Decoder Prize | ||
| 78 | 78 | prize = |
| 79 | 79 | Jdec.succeed Prize |
| 80 | 80 | |> Jpipe.required "category" category |
| 81 | - |> Jpipe.required "laureates" (Jdec.list laureate) | |
| 81 | + |> Jpipe.required "laureates" (Jdec.list laureate ) | |
| 82 | 82 | |> Jpipe.custom (optionalField "overallMotivation" (Jdec.nullable Jdec.string) Nothing) |
| 83 | 83 | |> Jpipe.required "year" Jdec.string |
Test case
1 generated file · +2 −2test/inputs/json/misc/cda6c.json
Melmdefault / QuickType.elm+2 −2
| @@ -71,7 +71,7 @@ optionalField key decoder fallback = | ||
| 71 | 71 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 72 | 72 | |
| 73 | 73 | quickType : Jdec.Decoder QuickType |
| 74 | -quickType = Jdec.list quickTypeUnion | |
| 74 | +quickType = Jdec.list quickTypeUnion | |
| 75 | 75 | |
| 76 | 76 | quickTypeToString : QuickType -> String |
| 77 | 77 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -79,7 +79,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 79 | 79 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 80 | 80 | quickTypeUnion = |
| 81 | 81 | Jdec.oneOf |
| 82 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 82 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 83 | 83 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 84 | 84 | ] |
Test case
1 generated file · +1 −1test/inputs/json/misc/cf0d8.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/d0908.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "total_population" (Jdec.list totalPopulation) | |
| 49 | + |> Jpipe.required "total_population" (Jdec.list totalPopulation ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/d23d5.json
Melmdefault / QuickType.elm+1 −1
| @@ -67,7 +67,7 @@ quickType = | ||
| 67 | 67 | |> Jpipe.required "next" Jdec.string |
| 68 | 68 | |> Jpipe.required "offset" Jdec.int |
| 69 | 69 | |> Jpipe.required "previous" Jdec.bool |
| 70 | - |> Jpipe.required "results" (Jdec.list result) | |
| 70 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 71 | 71 | |
| 72 | 72 | encodeQuickType : QuickType -> Jenc.Value |
| 73 | 73 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/dbfb3.json
Melmdefault / QuickType.elm+1 −1
| @@ -281,7 +281,7 @@ item = | ||
| 281 | 281 | Jdec.succeed Item |
| 282 | 282 | |> Jpipe.required "condition" condition |
| 283 | 283 | |> Jpipe.required "description" Jdec.string |
| 284 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 284 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 285 | 285 | |> Jpipe.required "guid" guid |
| 286 | 286 | |> Jpipe.required "lat" Jdec.string |
| 287 | 287 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +11 −11test/inputs/json/misc/dc44f.json
Melmdefault / QuickType.elm+11 −11
| @@ -178,9 +178,9 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 178 | 178 | quickType : Jdec.Decoder QuickType |
| 179 | 179 | quickType = |
| 180 | 180 | Jdec.succeed QuickType |
| 181 | - |> Jpipe.required "booster" (Jdec.list booster) | |
| 181 | + |> Jpipe.required "booster" (Jdec.list booster ) | |
| 182 | 182 | |> Jpipe.required "border" Jdec.string |
| 183 | - |> Jpipe.required "cards" (Jdec.list card) | |
| 183 | + |> Jpipe.required "cards" (Jdec.list card ) | |
| 184 | 184 | |> Jpipe.required "code" Jdec.string |
| 185 | 185 | |> Jpipe.required "gathererCode" Jdec.string |
| 186 | 186 | |> Jpipe.required "magicCardsInfoCode" Jdec.string |
| @@ -229,13 +229,13 @@ card = | ||
| 229 | 229 | |> Jpipe.required "artist" Jdec.string |
| 230 | 230 | |> Jpipe.required "type" Jdec.string |
| 231 | 231 | |> Jpipe.required "cmc" Jdec.int |
| 232 | - |> Jpipe.custom (optionalField "colorIdentity" (Jdec.nullable (Jdec.list colorIdentity)) Nothing) | |
| 233 | - |> Jpipe.custom (optionalField "colors" (Jdec.nullable (Jdec.list color)) Nothing) | |
| 232 | + |> Jpipe.custom (optionalField "colorIdentity" (Jdec.nullable (Jdec.list colorIdentity )) Nothing) | |
| 233 | + |> Jpipe.custom (optionalField "colors" (Jdec.nullable (Jdec.list color )) Nothing) | |
| 234 | 234 | |> Jpipe.custom (optionalField "flavor" (Jdec.nullable Jdec.string) Nothing) |
| 235 | 235 | |> Jpipe.required "id" Jdec.string |
| 236 | 236 | |> Jpipe.required "imageName" Jdec.string |
| 237 | 237 | |> Jpipe.required "layout" layout |
| 238 | - |> Jpipe.required "legalities" (Jdec.list legalityElement) | |
| 238 | + |> Jpipe.required "legalities" (Jdec.list legalityElement ) | |
| 239 | 239 | |> Jpipe.custom (optionalField "manaCost" (Jdec.nullable Jdec.string) Nothing) |
| 240 | 240 | |> Jpipe.custom (optionalField "mciNumber" (Jdec.nullable Jdec.string) Nothing) |
| 241 | 241 | |> Jpipe.required "multiverseid" Jdec.int |
| @@ -243,16 +243,16 @@ card = | ||
| 243 | 243 | |> Jpipe.custom (optionalField "originalText" (Jdec.nullable Jdec.string) Nothing) |
| 244 | 244 | |> Jpipe.required "originalType" Jdec.string |
| 245 | 245 | |> Jpipe.custom (optionalField "power" (Jdec.nullable Jdec.string) Nothing) |
| 246 | - |> Jpipe.required "printings" (Jdec.list Jdec.string) | |
| 246 | + |> Jpipe.required "printings" (Jdec.list Jdec.string ) | |
| 247 | 247 | |> Jpipe.required "rarity" rarity |
| 248 | 248 | |> Jpipe.custom (optionalField "reserved" (Jdec.nullable Jdec.bool) Nothing) |
| 249 | - |> Jpipe.custom (optionalField "rulings" (Jdec.nullable (Jdec.list ruling)) Nothing) | |
| 250 | - |> Jpipe.custom (optionalField "subtypes" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 251 | - |> Jpipe.custom (optionalField "supertypes" (Jdec.nullable (Jdec.list supertype)) Nothing) | |
| 249 | + |> Jpipe.custom (optionalField "rulings" (Jdec.nullable (Jdec.list ruling )) Nothing) | |
| 250 | + |> Jpipe.custom (optionalField "subtypes" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 251 | + |> Jpipe.custom (optionalField "supertypes" (Jdec.nullable (Jdec.list supertype )) Nothing) | |
| 252 | 252 | |> Jpipe.custom (optionalField "text" (Jdec.nullable Jdec.string) Nothing) |
| 253 | 253 | |> Jpipe.custom (optionalField "toughness" (Jdec.nullable Jdec.string) Nothing) |
| 254 | - |> Jpipe.required "types" (Jdec.list purpleType) | |
| 255 | - |> Jpipe.custom (optionalField "variations" (Jdec.nullable (Jdec.list Jdec.int)) Nothing) | |
| 254 | + |> Jpipe.required "types" (Jdec.list purpleType ) | |
| 255 | + |> Jpipe.custom (optionalField "variations" (Jdec.nullable (Jdec.list Jdec.int )) Nothing) | |
| 256 | 256 | |
| 257 | 257 | encodeCard : Card -> Jenc.Value |
| 258 | 258 | encodeCard x = |
Test case
1 generated file · +11 −11test/inputs/json/misc/dd1ce.json
Melmdefault / QuickType.elm+11 −11
| @@ -178,9 +178,9 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 178 | 178 | quickType : Jdec.Decoder QuickType |
| 179 | 179 | quickType = |
| 180 | 180 | Jdec.succeed QuickType |
| 181 | - |> Jpipe.required "booster" (Jdec.list booster) | |
| 181 | + |> Jpipe.required "booster" (Jdec.list booster ) | |
| 182 | 182 | |> Jpipe.required "border" Jdec.string |
| 183 | - |> Jpipe.required "cards" (Jdec.list card) | |
| 183 | + |> Jpipe.required "cards" (Jdec.list card ) | |
| 184 | 184 | |> Jpipe.required "code" Jdec.string |
| 185 | 185 | |> Jpipe.required "gathererCode" Jdec.string |
| 186 | 186 | |> Jpipe.required "magicCardsInfoCode" Jdec.string |
| @@ -229,13 +229,13 @@ card = | ||
| 229 | 229 | |> Jpipe.required "artist" Jdec.string |
| 230 | 230 | |> Jpipe.required "type" Jdec.string |
| 231 | 231 | |> Jpipe.required "cmc" Jdec.int |
| 232 | - |> Jpipe.custom (optionalField "colorIdentity" (Jdec.nullable (Jdec.list colorIdentity)) Nothing) | |
| 233 | - |> Jpipe.custom (optionalField "colors" (Jdec.nullable (Jdec.list color)) Nothing) | |
| 232 | + |> Jpipe.custom (optionalField "colorIdentity" (Jdec.nullable (Jdec.list colorIdentity )) Nothing) | |
| 233 | + |> Jpipe.custom (optionalField "colors" (Jdec.nullable (Jdec.list color )) Nothing) | |
| 234 | 234 | |> Jpipe.custom (optionalField "flavor" (Jdec.nullable Jdec.string) Nothing) |
| 235 | 235 | |> Jpipe.required "id" Jdec.string |
| 236 | 236 | |> Jpipe.required "imageName" Jdec.string |
| 237 | 237 | |> Jpipe.required "layout" layout |
| 238 | - |> Jpipe.required "legalities" (Jdec.list legalityElement) | |
| 238 | + |> Jpipe.required "legalities" (Jdec.list legalityElement ) | |
| 239 | 239 | |> Jpipe.custom (optionalField "manaCost" (Jdec.nullable Jdec.string) Nothing) |
| 240 | 240 | |> Jpipe.custom (optionalField "mciNumber" (Jdec.nullable Jdec.string) Nothing) |
| 241 | 241 | |> Jpipe.required "multiverseid" Jdec.int |
| @@ -243,16 +243,16 @@ card = | ||
| 243 | 243 | |> Jpipe.custom (optionalField "originalText" (Jdec.nullable Jdec.string) Nothing) |
| 244 | 244 | |> Jpipe.required "originalType" Jdec.string |
| 245 | 245 | |> Jpipe.custom (optionalField "power" (Jdec.nullable Jdec.string) Nothing) |
| 246 | - |> Jpipe.required "printings" (Jdec.list Jdec.string) | |
| 246 | + |> Jpipe.required "printings" (Jdec.list Jdec.string ) | |
| 247 | 247 | |> Jpipe.required "rarity" rarity |
| 248 | 248 | |> Jpipe.custom (optionalField "reserved" (Jdec.nullable Jdec.bool) Nothing) |
| 249 | - |> Jpipe.custom (optionalField "rulings" (Jdec.nullable (Jdec.list ruling)) Nothing) | |
| 250 | - |> Jpipe.custom (optionalField "subtypes" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 251 | - |> Jpipe.custom (optionalField "supertypes" (Jdec.nullable (Jdec.list supertype)) Nothing) | |
| 249 | + |> Jpipe.custom (optionalField "rulings" (Jdec.nullable (Jdec.list ruling )) Nothing) | |
| 250 | + |> Jpipe.custom (optionalField "subtypes" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 251 | + |> Jpipe.custom (optionalField "supertypes" (Jdec.nullable (Jdec.list supertype )) Nothing) | |
| 252 | 252 | |> Jpipe.custom (optionalField "text" (Jdec.nullable Jdec.string) Nothing) |
| 253 | 253 | |> Jpipe.custom (optionalField "toughness" (Jdec.nullable Jdec.string) Nothing) |
| 254 | - |> Jpipe.required "types" (Jdec.list purpleType) | |
| 255 | - |> Jpipe.custom (optionalField "variations" (Jdec.nullable (Jdec.list Jdec.int)) Nothing) | |
| 254 | + |> Jpipe.required "types" (Jdec.list purpleType ) | |
| 255 | + |> Jpipe.custom (optionalField "variations" (Jdec.nullable (Jdec.list Jdec.int )) Nothing) | |
| 256 | 256 | |
| 257 | 257 | encodeCard : Card -> Jenc.Value |
| 258 | 258 | encodeCard x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/dec3a.json
Melmdefault / QuickType.elm+1 −1
| @@ -108,7 +108,7 @@ quickType : Jdec.Decoder QuickType | ||
| 108 | 108 | quickType = |
| 109 | 109 | Jdec.succeed QuickType |
| 110 | 110 | |> Jpipe.required "metadata" metadata |
| 111 | - |> Jpipe.required "results" (Jdec.list result) | |
| 111 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 112 | 112 | |
| 113 | 113 | encodeQuickType : QuickType -> Jenc.Value |
| 114 | 114 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/df957.json
Melmdefault / QuickType.elm+1 −1
| @@ -276,7 +276,7 @@ item = | ||
| 276 | 276 | Jdec.succeed Item |
| 277 | 277 | |> Jpipe.required "condition" condition |
| 278 | 278 | |> Jpipe.required "description" Jdec.string |
| 279 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 279 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 280 | 280 | |> Jpipe.required "guid" guid |
| 281 | 281 | |> Jpipe.required "lat" Jdec.string |
| 282 | 282 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/misc/e0ac7.json
Melmdefault / QuickType.elm+1 −1
| @@ -161,7 +161,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 161 | 161 | quickType : Jdec.Decoder QuickType |
| 162 | 162 | quickType = |
| 163 | 163 | Jdec.succeed QuickType |
| 164 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 164 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 165 | 165 | |> Jpipe.required "meta" meta |
| 166 | 166 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +1 −1test/inputs/json/misc/e2915.json
Melmdefault / QuickType.elm+1 −1
| @@ -280,7 +280,7 @@ item = | ||
| 280 | 280 | Jdec.succeed Item |
| 281 | 281 | |> Jpipe.required "condition" condition |
| 282 | 282 | |> Jpipe.required "description" Jdec.string |
| 283 | - |> Jpipe.required "forecast" (Jdec.list forecast) | |
| 283 | + |> Jpipe.required "forecast" (Jdec.list forecast ) | |
| 284 | 284 | |> Jpipe.required "guid" guid |
| 285 | 285 | |> Jpipe.required "lat" Jdec.string |
| 286 | 286 | |> Jpipe.required "link" Jdec.string |
Test case
1 generated file · +2 −2test/inputs/json/misc/e2a58.json
Melmdefault / QuickType.elm+2 −2
| @@ -39,7 +39,7 @@ optionalField key decoder fallback = | ||
| 39 | 39 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 40 | 40 | |
| 41 | 41 | quickType : Jdec.Decoder QuickType |
| 42 | -quickType = Jdec.list quickTypeElement | |
| 42 | +quickType = Jdec.list quickTypeElement | |
| 43 | 43 | |
| 44 | 44 | quickTypeToString : QuickType -> String |
| 45 | 45 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -48,7 +48,7 @@ quickTypeElement : Jdec.Decoder QuickTypeElement | ||
| 48 | 48 | quickTypeElement = |
| 49 | 49 | Jdec.succeed QuickTypeElement |
| 50 | 50 | |> Jpipe.required "date" Jdec.string |
| 51 | - |> Jpipe.required "stop-and-search" (Jdec.list Jdec.string) | |
| 51 | + |> Jpipe.required "stop-and-search" (Jdec.list Jdec.string ) | |
| 52 | 52 | |
| 53 | 53 | encodeQuickTypeElement : QuickTypeElement -> Jenc.Value |
| 54 | 54 | encodeQuickTypeElement x = |
Test case
1 generated file · +4 −4test/inputs/json/misc/e324e.json
Melmdefault / QuickType.elm+4 −4
| @@ -130,8 +130,8 @@ quickType = | ||
| 130 | 130 | |> Jpipe.required "host" Jdec.string |
| 131 | 131 | |> Jpipe.required "info" info |
| 132 | 132 | |> Jpipe.required "paths" paths |
| 133 | - |> Jpipe.required "produces" (Jdec.list Jdec.string) | |
| 134 | - |> Jpipe.required "schemes" (Jdec.list Jdec.string) | |
| 133 | + |> Jpipe.required "produces" (Jdec.list Jdec.string ) | |
| 134 | + |> Jpipe.required "schemes" (Jdec.list Jdec.string ) | |
| 135 | 135 | |> Jpipe.required "swagger" Jdec.string |
| 136 | 136 | |
| 137 | 137 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -236,10 +236,10 @@ get : Jdec.Decoder Get | ||
| 236 | 236 | get = |
| 237 | 237 | Jdec.succeed Get |
| 238 | 238 | |> Jpipe.required "description" Jdec.string |
| 239 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 239 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 240 | 240 | |> Jpipe.required "responses" responses |
| 241 | 241 | |> Jpipe.required "summary" Jdec.string |
| 242 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 242 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 243 | 243 | |
| 244 | 244 | encodeGet : Get -> Jenc.Value |
| 245 | 245 | encodeGet x = |
Test case
1 generated file · +2 −2test/inputs/json/misc/e53b5.json
Melmdefault / QuickType.elm+2 −2
| @@ -71,7 +71,7 @@ optionalField key decoder fallback = | ||
| 71 | 71 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 72 | 72 | |
| 73 | 73 | quickType : Jdec.Decoder QuickType |
| 74 | -quickType = Jdec.list quickTypeUnion | |
| 74 | +quickType = Jdec.list quickTypeUnion | |
| 75 | 75 | |
| 76 | 76 | quickTypeToString : QuickType -> String |
| 77 | 77 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -79,7 +79,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 79 | 79 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 80 | 80 | quickTypeUnion = |
| 81 | 81 | Jdec.oneOf |
| 82 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 82 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 83 | 83 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 84 | 84 | ] |
Test case
1 generated file · +1 −1test/inputs/json/misc/e8a0b.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +18 −18test/inputs/json/misc/e8b04.json
Melmdefault / QuickType.elm+18 −18
| @@ -351,7 +351,7 @@ optionalField key decoder fallback = | ||
| 351 | 351 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 352 | 352 | |
| 353 | 353 | quickType : Jdec.Decoder QuickType |
| 354 | -quickType = Jdec.list quickTypeElement | |
| 354 | +quickType = Jdec.list quickTypeElement | |
| 355 | 355 | |
| 356 | 356 | quickTypeToString : QuickType -> String |
| 357 | 357 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -365,8 +365,8 @@ quickTypeElement = | ||
| 365 | 365 | |> Jpipe.custom (optionalField "description" (Jdec.nullable Jdec.string) Nothing) |
| 366 | 366 | |> Jpipe.custom (optionalField "displayType" (Jdec.nullable displayType) Nothing) |
| 367 | 367 | |> Jpipe.required "downloadCount" Jdec.int |
| 368 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list quickTypeFlag)) Nothing) | |
| 369 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 368 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list quickTypeFlag )) Nothing) | |
| 369 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 370 | 370 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 371 | 371 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 372 | 372 | |> Jpipe.required "id" Jdec.string |
| @@ -387,14 +387,14 @@ quickTypeElement = | ||
| 387 | 387 | |> Jpipe.required "publicationStage" publicationStage |
| 388 | 388 | |> Jpipe.custom (optionalField "ratings" (Jdec.nullable ratings) Nothing) |
| 389 | 389 | |> Jpipe.custom (optionalField "resourceName" (Jdec.nullable Jdec.string) Nothing) |
| 390 | - |> Jpipe.required "rights" (Jdec.list right) | |
| 390 | + |> Jpipe.required "rights" (Jdec.list right ) | |
| 391 | 391 | |> Jpipe.custom (optionalField "rowClass" (Jdec.nullable Jdec.string) Nothing) |
| 392 | 392 | |> Jpipe.custom (optionalField "rowIdentifierColumnId" (Jdec.nullable Jdec.int) Nothing) |
| 393 | 393 | |> Jpipe.custom (optionalField "rowsUpdatedAt" (Jdec.nullable Jdec.int) Nothing) |
| 394 | 394 | |> Jpipe.custom (optionalField "rowsUpdatedBy" (Jdec.nullable rowsUpdatedBy) Nothing) |
| 395 | 395 | |> Jpipe.required "tableAuthor" tableAuthor |
| 396 | 396 | |> Jpipe.required "tableId" Jdec.int |
| 397 | - |> Jpipe.custom (optionalField "tags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 397 | + |> Jpipe.custom (optionalField "tags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 398 | 398 | |> Jpipe.required "totalTimesRated" Jdec.int |
| 399 | 399 | |> Jpipe.required "viewCount" Jdec.int |
| 400 | 400 | |> Jpipe.required "viewLastModified" Jdec.int |
| @@ -484,7 +484,7 @@ encodeQuickTypeFlag x = case x of | ||
| 484 | 484 | grant : Jdec.Decoder Grant |
| 485 | 485 | grant = |
| 486 | 486 | Jdec.succeed Grant |
| 487 | - |> Jpipe.required "flags" (Jdec.list grantFlag) | |
| 487 | + |> Jpipe.required "flags" (Jdec.list grantFlag ) | |
| 488 | 488 | |> Jpipe.required "type" grantType |
| 489 | 489 | |> Jpipe.required "inherited" Jdec.bool |
| 490 | 490 | |
| @@ -525,7 +525,7 @@ encodeGrantType x = case x of | ||
| 525 | 525 | quickTypeMetadata : Jdec.Decoder QuickTypeMetadata |
| 526 | 526 | quickTypeMetadata = |
| 527 | 527 | Jdec.succeed QuickTypeMetadata |
| 528 | - |> Jpipe.custom (optionalField "availableDisplayTypes" (Jdec.nullable (Jdec.list displayType)) Nothing) | |
| 528 | + |> Jpipe.custom (optionalField "availableDisplayTypes" (Jdec.nullable (Jdec.list displayType )) Nothing) | |
| 529 | 529 | |> Jpipe.custom (optionalField "custom_fields" (Jdec.nullable customFields) Nothing) |
| 530 | 530 | |> Jpipe.custom (optionalField "jsonQuery" (Jdec.nullable jsonQuery) Nothing) |
| 531 | 531 | |> Jpipe.custom (optionalField "rdfClass" (Jdec.nullable Jdec.string) Nothing) |
| @@ -576,10 +576,10 @@ encodeTest x = | ||
| 576 | 576 | jsonQuery : Jdec.Decoder JSONQuery |
| 577 | 577 | jsonQuery = |
| 578 | 578 | Jdec.succeed JSONQuery |
| 579 | - |> Jpipe.custom (optionalField "group" (Jdec.nullable (Jdec.list group)) Nothing) | |
| 579 | + |> Jpipe.custom (optionalField "group" (Jdec.nullable (Jdec.list group )) Nothing) | |
| 580 | 580 | |> Jpipe.custom (optionalField "where" (Jdec.nullable purpleWhere) Nothing) |
| 581 | - |> Jpipe.custom (optionalField "order" (Jdec.nullable (Jdec.list order)) Nothing) | |
| 582 | - |> Jpipe.custom (optionalField "select" (Jdec.nullable (Jdec.list select)) Nothing) | |
| 581 | + |> Jpipe.custom (optionalField "order" (Jdec.nullable (Jdec.list order )) Nothing) | |
| 582 | + |> Jpipe.custom (optionalField "select" (Jdec.nullable (Jdec.list select )) Nothing) | |
| 583 | 583 | |
| 584 | 584 | encodeJSONQuery : JSONQuery -> Jenc.Value |
| 585 | 585 | encodeJSONQuery x = |
| @@ -604,7 +604,7 @@ encodeGroup x = | ||
| 604 | 604 | purpleWhere : Jdec.Decoder Where |
| 605 | 605 | purpleWhere = |
| 606 | 606 | Jdec.succeed Where |
| 607 | - |> Jpipe.custom (optionalField "children" (Jdec.nullable (Jdec.list child)) Nothing) | |
| 607 | + |> Jpipe.custom (optionalField "children" (Jdec.nullable (Jdec.list child )) Nothing) | |
| 608 | 608 | |> Jpipe.custom (optionalField "columnFieldName" (Jdec.nullable childColumnFieldName) Nothing) |
| 609 | 609 | |> Jpipe.custom (optionalField "metadata" (Jdec.nullable childMetadata) Nothing) |
| 610 | 610 | |> Jpipe.required "operator" whereOperator |
| @@ -659,7 +659,7 @@ encodeChildColumnFieldName x = case x of | ||
| 659 | 659 | childMetadata : Jdec.Decoder ChildMetadata |
| 660 | 660 | childMetadata = |
| 661 | 661 | Jdec.succeed ChildMetadata |
| 662 | - |> Jpipe.custom (optionalField "customValues" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 662 | + |> Jpipe.custom (optionalField "customValues" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 663 | 663 | |> Jpipe.custom (optionalField "freeform" (Jdec.nullable Jdec.bool) Nothing) |
| 664 | 664 | |> Jpipe.custom (optionalField "includeAuto" (Jdec.nullable Jdec.int) Nothing) |
| 665 | 665 | |> Jpipe.custom (optionalField "operator" (Jdec.nullable metadataOperator) Nothing) |
| @@ -814,7 +814,7 @@ encodeRichRendererConfigs x = | ||
| 814 | 814 | fatRow : Jdec.Decoder FatRow |
| 815 | 815 | fatRow = |
| 816 | 816 | Jdec.succeed FatRow |
| 817 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 817 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 818 | 818 | |
| 819 | 819 | encodeFatRow : FatRow -> Jenc.Value |
| 820 | 820 | encodeFatRow x = |
| @@ -825,7 +825,7 @@ encodeFatRow x = | ||
| 825 | 825 | column : Jdec.Decoder Column |
| 826 | 826 | column = |
| 827 | 827 | Jdec.succeed Column |
| 828 | - |> Jpipe.required "rows" (Jdec.list row) | |
| 828 | + |> Jpipe.required "rows" (Jdec.list row ) | |
| 829 | 829 | |> Jpipe.required "styles" styles |
| 830 | 830 | |
| 831 | 831 | encodeColumn : Column -> Jenc.Value |
| @@ -838,7 +838,7 @@ encodeColumn x = | ||
| 838 | 838 | row : Jdec.Decoder Row |
| 839 | 839 | row = |
| 840 | 840 | Jdec.succeed Row |
| 841 | - |> Jpipe.required "fields" (Jdec.list field) | |
| 841 | + |> Jpipe.required "fields" (Jdec.list field ) | |
| 842 | 842 | |
| 843 | 843 | encodeRow : Row -> Jenc.Value |
| 844 | 844 | encodeRow x = |
| @@ -969,13 +969,13 @@ owner : Jdec.Decoder Owner | ||
| 969 | 969 | owner = |
| 970 | 970 | Jdec.succeed Owner |
| 971 | 971 | |> Jpipe.required "displayName" Jdec.string |
| 972 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 972 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 973 | 973 | |> Jpipe.required "id" Jdec.string |
| 974 | 974 | |> Jpipe.custom (optionalField "lastNotificationSeenAt" (Jdec.nullable Jdec.int) Nothing) |
| 975 | 975 | |> Jpipe.custom (optionalField "profileImageUrlLarge" (Jdec.nullable Jdec.string) Nothing) |
| 976 | 976 | |> Jpipe.custom (optionalField "profileImageUrlMedium" (Jdec.nullable Jdec.string) Nothing) |
| 977 | 977 | |> Jpipe.custom (optionalField "profileImageUrlSmall" (Jdec.nullable Jdec.string) Nothing) |
| 978 | - |> Jpipe.custom (optionalField "rights" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 978 | + |> Jpipe.custom (optionalField "rights" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 979 | 979 | |> Jpipe.custom (optionalField "roleName" (Jdec.nullable roleName) Nothing) |
| 980 | 980 | |> Jpipe.required "screenName" Jdec.string |
| 981 | 981 | |
| @@ -1083,7 +1083,7 @@ tableAuthor = | ||
| 1083 | 1083 | Jdec.succeed TableAuthor |
| 1084 | 1084 | |> Jpipe.required "displayName" Jdec.string |
| 1085 | 1085 | |> Jpipe.required "id" Jdec.string |
| 1086 | - |> Jpipe.custom (optionalField "rights" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 1086 | + |> Jpipe.custom (optionalField "rights" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 1087 | 1087 | |> Jpipe.custom (optionalField "roleName" (Jdec.nullable roleName) Nothing) |
| 1088 | 1088 | |> Jpipe.required "screenName" Jdec.string |
Test case
1 generated file · +3 −3test/inputs/json/misc/f22f5.json
Melmdefault / QuickType.elm+3 −3
| @@ -159,7 +159,7 @@ quickTypeData = | ||
| 159 | 159 | Jdec.succeed QuickTypeData |
| 160 | 160 | |> Jpipe.required "after" Jdec.string |
| 161 | 161 | |> Jpipe.required "before" (Jdec.null ()) |
| 162 | - |> Jpipe.required "children" (Jdec.list child) | |
| 162 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 163 | 163 | |> Jpipe.required "modhash" Jdec.string |
| 164 | 164 | |
| 165 | 165 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -218,7 +218,7 @@ childData = | ||
| 218 | 218 | |> Jpipe.required "locked" Jdec.bool |
| 219 | 219 | |> Jpipe.required "media" (Jdec.null ()) |
| 220 | 220 | |> Jpipe.required "media_embed" mediaEmbed |
| 221 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 221 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 222 | 222 | |> Jpipe.required "name" Jdec.string |
| 223 | 223 | |> Jpipe.required "num_comments" Jdec.int |
| 224 | 224 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -244,7 +244,7 @@ childData = | ||
| 244 | 244 | |> Jpipe.required "title" Jdec.string |
| 245 | 245 | |> Jpipe.required "ups" Jdec.int |
| 246 | 246 | |> Jpipe.required "url" Jdec.string |
| 247 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 247 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 248 | 248 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 249 | 249 | |> Jpipe.required "visited" Jdec.bool |
Test case
1 generated file · +1 −1test/inputs/json/misc/f3139.json
Melmdefault / QuickType.elm+1 −1
| @@ -39,7 +39,7 @@ optionalField key decoder fallback = | ||
| 39 | 39 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 40 | 40 | |
| 41 | 41 | quickType : Jdec.Decoder QuickType |
| 42 | -quickType = Jdec.list quickTypeElement | |
| 42 | +quickType = Jdec.list quickTypeElement | |
| 43 | 43 | |
| 44 | 44 | quickTypeToString : QuickType -> String |
| 45 | 45 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/f3edf.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/f466a.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ optionalField key decoder fallback = | ||
| 47 | 47 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 48 | 48 | |
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | -quickType = Jdec.list quickTypeElement | |
| 50 | +quickType = Jdec.list quickTypeElement | |
| 51 | 51 | |
| 52 | 52 | quickTypeToString : QuickType -> String |
| 53 | 53 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/misc/f6a65.json
Melmdefault / QuickType.elm+1 −1
| @@ -169,7 +169,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 169 | 169 | quickType : Jdec.Decoder QuickType |
| 170 | 170 | quickType = |
| 171 | 171 | Jdec.succeed QuickType |
| 172 | - |> Jpipe.required "data" (Jdec.list datum) | |
| 172 | + |> Jpipe.required "data" (Jdec.list datum ) | |
| 173 | 173 | |> Jpipe.required "meta" meta |
| 174 | 174 | |> Jpipe.required "pagination" pagination |
Test case
1 generated file · +9 −9test/inputs/json/misc/f74d5.json
Melmdefault / QuickType.elm+9 −9
| @@ -173,7 +173,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 173 | 173 | quickType : Jdec.Decoder QuickType |
| 174 | 174 | quickType = |
| 175 | 175 | Jdec.succeed QuickType |
| 176 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 176 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 177 | 177 | |> Jpipe.required "meta" meta |
| 178 | 178 | |
| 179 | 179 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -211,12 +211,12 @@ view = | ||
| 211 | 211 | Jdec.succeed View |
| 212 | 212 | |> Jpipe.required "averageRating" Jdec.int |
| 213 | 213 | |> Jpipe.required "category" Jdec.string |
| 214 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 214 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 215 | 215 | |> Jpipe.required "createdAt" Jdec.int |
| 216 | 216 | |> Jpipe.required "displayType" Jdec.string |
| 217 | 217 | |> Jpipe.required "downloadCount" Jdec.int |
| 218 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 219 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 218 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 219 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 220 | 220 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 221 | 221 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 222 | 222 | |> Jpipe.required "id" Jdec.string |
| @@ -236,7 +236,7 @@ view = | ||
| 236 | 236 | |> Jpipe.required "publicationGroup" Jdec.int |
| 237 | 237 | |> Jpipe.required "publicationStage" Jdec.string |
| 238 | 238 | |> Jpipe.required "query" query |
| 239 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 239 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 240 | 240 | |> Jpipe.required "rowClass" Jdec.string |
| 241 | 241 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 242 | 242 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| @@ -295,7 +295,7 @@ column = | ||
| 295 | 295 | |> Jpipe.custom (optionalField "cachedContents" (Jdec.nullable cachedContents) Nothing) |
| 296 | 296 | |> Jpipe.required "dataTypeName" typeName |
| 297 | 297 | |> Jpipe.required "fieldName" Jdec.string |
| 298 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 298 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 299 | 299 | |> Jpipe.required "format" query |
| 300 | 300 | |> Jpipe.required "id" Jdec.int |
| 301 | 301 | |> Jpipe.required "name" Jdec.string |
| @@ -329,7 +329,7 @@ cachedContents = | ||
| 329 | 329 | |> Jpipe.required "null" Jdec.int |
| 330 | 330 | |> Jpipe.required "smallest" Jdec.string |
| 331 | 331 | |> Jpipe.custom (optionalField "sum" (Jdec.nullable Jdec.string) Nothing) |
| 332 | - |> Jpipe.required "top" (Jdec.list top) | |
| 332 | + |> Jpipe.required "top" (Jdec.list top ) | |
| 333 | 333 | |
| 334 | 334 | encodeCachedContents : CachedContents -> Jenc.Value |
| 335 | 335 | encodeCachedContents x = |
| @@ -386,7 +386,7 @@ encodeQuery x = | ||
| 386 | 386 | grant : Jdec.Decoder Grant |
| 387 | 387 | grant = |
| 388 | 388 | Jdec.succeed Grant |
| 389 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 389 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 390 | 390 | |> Jpipe.required "type" Jdec.string |
| 391 | 391 | |> Jpipe.required "inherited" Jdec.bool |
| 392 | 392 | |
| @@ -412,7 +412,7 @@ encodeLicense x = | ||
| 412 | 412 | metadata : Jdec.Decoder Metadata |
| 413 | 413 | metadata = |
| 414 | 414 | Jdec.succeed Metadata |
| 415 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 415 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 416 | 416 | |> Jpipe.required "rdfClass" Jdec.string |
| 417 | 417 | |> Jpipe.required "rdfSubject" Jdec.string |
| 418 | 418 | |> Jpipe.required "renderTypeConfig" renderTypeConfig |
Test case
1 generated file · +4 −4test/inputs/json/misc/f82d9.json
Melmdefault / QuickType.elm+4 −4
| @@ -144,8 +144,8 @@ quickType = | ||
| 144 | 144 | |> Jpipe.required "host" Jdec.string |
| 145 | 145 | |> Jpipe.required "info" info |
| 146 | 146 | |> Jpipe.required "paths" paths |
| 147 | - |> Jpipe.required "produces" (Jdec.list Jdec.string) | |
| 148 | - |> Jpipe.required "schemes" (Jdec.list Jdec.string) | |
| 147 | + |> Jpipe.required "produces" (Jdec.list Jdec.string ) | |
| 148 | + |> Jpipe.required "schemes" (Jdec.list Jdec.string ) | |
| 149 | 149 | |> Jpipe.required "swagger" Jdec.string |
| 150 | 150 | |
| 151 | 151 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -279,10 +279,10 @@ get : Jdec.Decoder Get | ||
| 279 | 279 | get = |
| 280 | 280 | Jdec.succeed Get |
| 281 | 281 | |> Jpipe.required "description" Jdec.string |
| 282 | - |> Jpipe.required "parameters" (Jdec.list parameter) | |
| 282 | + |> Jpipe.required "parameters" (Jdec.list parameter ) | |
| 283 | 283 | |> Jpipe.required "responses" responses |
| 284 | 284 | |> Jpipe.required "summary" Jdec.string |
| 285 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 285 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 286 | 286 | |
| 287 | 287 | encodeGet : Get -> Jenc.Value |
| 288 | 288 | encodeGet x = |
Test case
1 generated file · +1 −1test/inputs/json/misc/f974d.json
Melmdefault / QuickType.elm+1 −1
| @@ -48,7 +48,7 @@ quickType = | ||
| 48 | 48 | |> Jpipe.required "hash" Jdec.string |
| 49 | 49 | |> Jpipe.required "height" Jdec.int |
| 50 | 50 | |> Jpipe.required "time" Jdec.int |
| 51 | - |> Jpipe.required "txIndexes" (Jdec.list Jdec.int) | |
| 51 | + |> Jpipe.required "txIndexes" (Jdec.list Jdec.int ) | |
| 52 | 52 | |
| 53 | 53 | encodeQuickType : QuickType -> Jenc.Value |
| 54 | 54 | encodeQuickType x = |
Test case
1 generated file · +16 −16test/inputs/json/misc/fcca3.json
Melmdefault / QuickType.elm+16 −16
| @@ -285,7 +285,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 285 | 285 | quickType : Jdec.Decoder QuickType |
| 286 | 286 | quickType = |
| 287 | 287 | Jdec.succeed QuickType |
| 288 | - |> Jpipe.required "data" (Jdec.list (Jdec.list datum)) | |
| 288 | + |> Jpipe.required "data" (Jdec.list (Jdec.list datum ) ) | |
| 289 | 289 | |> Jpipe.required "meta" meta |
| 290 | 290 | |
| 291 | 291 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -326,13 +326,13 @@ view = | ||
| 326 | 326 | |> Jpipe.required "attribution" Jdec.string |
| 327 | 327 | |> Jpipe.required "averageRating" Jdec.int |
| 328 | 328 | |> Jpipe.required "category" Jdec.string |
| 329 | - |> Jpipe.required "columns" (Jdec.list column) | |
| 329 | + |> Jpipe.required "columns" (Jdec.list column ) | |
| 330 | 330 | |> Jpipe.required "createdAt" Jdec.int |
| 331 | 331 | |> Jpipe.required "description" Jdec.string |
| 332 | 332 | |> Jpipe.required "displayType" Jdec.string |
| 333 | 333 | |> Jpipe.required "downloadCount" Jdec.int |
| 334 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 335 | - |> Jpipe.required "grants" (Jdec.list grant) | |
| 334 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 335 | + |> Jpipe.required "grants" (Jdec.list grant ) | |
| 336 | 336 | |> Jpipe.required "hideFromCatalog" Jdec.bool |
| 337 | 337 | |> Jpipe.required "hideFromDataJson" Jdec.bool |
| 338 | 338 | |> Jpipe.required "id" Jdec.string |
| @@ -350,12 +350,12 @@ view = | ||
| 350 | 350 | |> Jpipe.required "publicationGroup" Jdec.int |
| 351 | 351 | |> Jpipe.required "publicationStage" Jdec.string |
| 352 | 352 | |> Jpipe.required "query" query |
| 353 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 353 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 354 | 354 | |> Jpipe.required "rowsUpdatedAt" Jdec.int |
| 355 | 355 | |> Jpipe.required "rowsUpdatedBy" Jdec.string |
| 356 | 356 | |> Jpipe.required "tableAuthor" owner |
| 357 | 357 | |> Jpipe.required "tableId" Jdec.int |
| 358 | - |> Jpipe.required "tags" (Jdec.list Jdec.string) | |
| 358 | + |> Jpipe.required "tags" (Jdec.list Jdec.string ) | |
| 359 | 359 | |> Jpipe.required "totalTimesRated" Jdec.int |
| 360 | 360 | |> Jpipe.required "viewCount" Jdec.int |
| 361 | 361 | |> Jpipe.required "viewLastModified" Jdec.int |
| @@ -410,7 +410,7 @@ column = | ||
| 410 | 410 | |> Jpipe.required "dataTypeName" typeName |
| 411 | 411 | |> Jpipe.custom (optionalField "description" (Jdec.nullable Jdec.string) Nothing) |
| 412 | 412 | |> Jpipe.required "fieldName" Jdec.string |
| 413 | - |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 413 | + |> Jpipe.custom (optionalField "flags" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 414 | 414 | |> Jpipe.required "format" format |
| 415 | 415 | |> Jpipe.required "id" Jdec.int |
| 416 | 416 | |> Jpipe.required "name" Jdec.string |
| @@ -445,7 +445,7 @@ cachedContents = | ||
| 445 | 445 | |> Jpipe.required "null" Jdec.int |
| 446 | 446 | |> Jpipe.required "smallest" Jdec.string |
| 447 | 447 | |> Jpipe.custom (optionalField "sum" (Jdec.nullable Jdec.string) Nothing) |
| 448 | - |> Jpipe.required "top" (Jdec.list top) | |
| 448 | + |> Jpipe.required "top" (Jdec.list top ) | |
| 449 | 449 | |
| 450 | 450 | encodeCachedContents : CachedContents -> Jenc.Value |
| 451 | 451 | encodeCachedContents x = |
| @@ -507,7 +507,7 @@ encodeFormat x = | ||
| 507 | 507 | grant : Jdec.Decoder Grant |
| 508 | 508 | grant = |
| 509 | 509 | Jdec.succeed Grant |
| 510 | - |> Jpipe.required "flags" (Jdec.list Jdec.string) | |
| 510 | + |> Jpipe.required "flags" (Jdec.list Jdec.string ) | |
| 511 | 511 | |> Jpipe.required "type" Jdec.string |
| 512 | 512 | |> Jpipe.required "inherited" Jdec.bool |
| 513 | 513 | |
| @@ -522,8 +522,8 @@ encodeGrant x = | ||
| 522 | 522 | viewMetadata : Jdec.Decoder ViewMetadata |
| 523 | 523 | viewMetadata = |
| 524 | 524 | Jdec.succeed ViewMetadata |
| 525 | - |> Jpipe.required "attachments" (Jdec.list attachment) | |
| 526 | - |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string) | |
| 525 | + |> Jpipe.required "attachments" (Jdec.list attachment ) | |
| 526 | + |> Jpipe.required "availableDisplayTypes" (Jdec.list Jdec.string ) | |
| 527 | 527 | |> Jpipe.required "custom_fields" customFields |
| 528 | 528 | |> Jpipe.required "filterCondition" filterCondition |
| 529 | 529 | |> Jpipe.required "jsonQuery" jsonQuery |
| @@ -641,7 +641,7 @@ encodeDisclaimers x = | ||
| 641 | 641 | filterCondition : Jdec.Decoder FilterCondition |
| 642 | 642 | filterCondition = |
| 643 | 643 | Jdec.succeed FilterCondition |
| 644 | - |> Jpipe.required "children" (Jdec.list child) | |
| 644 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 645 | 645 | |> Jpipe.required "type" Jdec.string |
| 646 | 646 | |> Jpipe.required "metadata" filterConditionMetadata |
| 647 | 647 | |> Jpipe.required "value" Jdec.string |
| @@ -673,7 +673,7 @@ encodeChild x = | ||
| 673 | 673 | childMetadata : Jdec.Decoder ChildMetadata |
| 674 | 674 | childMetadata = |
| 675 | 675 | Jdec.succeed ChildMetadata |
| 676 | - |> Jpipe.required "customValues" (Jdec.list (Jdec.list Jdec.string)) | |
| 676 | + |> Jpipe.required "customValues" (Jdec.list (Jdec.list Jdec.string ) ) | |
| 677 | 677 | |> Jpipe.required "operator" Jdec.string |
| 678 | 678 | |> Jpipe.required "tableColumnId" tableColumnID |
| 679 | 679 | |
| @@ -712,7 +712,7 @@ encodeFilterConditionMetadata x = | ||
| 712 | 712 | jsonQuery : Jdec.Decoder JSONQuery |
| 713 | 713 | jsonQuery = |
| 714 | 714 | Jdec.succeed JSONQuery |
| 715 | - |> Jpipe.required "order" (Jdec.list order) | |
| 715 | + |> Jpipe.required "order" (Jdec.list order ) | |
| 716 | 716 | |
| 717 | 717 | encodeJSONQuery : JSONQuery -> Jenc.Value |
| 718 | 718 | encodeJSONQuery x = |
| @@ -763,7 +763,7 @@ owner = | ||
| 763 | 763 | |> Jpipe.required "profileImageUrlLarge" Jdec.string |
| 764 | 764 | |> Jpipe.required "profileImageUrlMedium" Jdec.string |
| 765 | 765 | |> Jpipe.required "profileImageUrlSmall" Jdec.string |
| 766 | - |> Jpipe.required "rights" (Jdec.list Jdec.string) | |
| 766 | + |> Jpipe.required "rights" (Jdec.list Jdec.string ) | |
| 767 | 767 | |> Jpipe.required "roleName" Jdec.string |
| 768 | 768 | |> Jpipe.required "screenName" Jdec.string |
| 769 | 769 | |
| @@ -783,7 +783,7 @@ encodeOwner x = | ||
| 783 | 783 | query : Jdec.Decoder Query |
| 784 | 784 | query = |
| 785 | 785 | Jdec.succeed Query |
| 786 | - |> Jpipe.required "orderBys" (Jdec.list orderBy) | |
| 786 | + |> Jpipe.required "orderBys" (Jdec.list orderBy ) | |
| 787 | 787 | |
| 788 | 788 | encodeQuery : Query -> Jenc.Value |
| 789 | 789 | encodeQuery x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/bug2521.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "options" (Jdec.list option) | |
| 49 | + |> Jpipe.required "options" (Jdec.list option ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/bug2590.json
Melmdefault / QuickType.elm+1 −1
| @@ -47,7 +47,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 47 | 47 | quickType : Jdec.Decoder QuickType |
| 48 | 48 | quickType = |
| 49 | 49 | Jdec.succeed QuickType |
| 50 | - |> Jpipe.required "invoices" (Jdec.list invoice) | |
| 50 | + |> Jpipe.required "invoices" (Jdec.list invoice ) | |
| 51 | 51 | |
| 52 | 52 | encodeQuickType : QuickType -> Jenc.Value |
| 53 | 53 | encodeQuickType x = |
Test case
1 generated file · +2 −2test/inputs/json/priority/bug863.json
Melmdefault / QuickType.elm+2 −2
| @@ -133,7 +133,7 @@ optionalField key decoder fallback = | ||
| 133 | 133 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 134 | 134 | |
| 135 | 135 | quickType : Jdec.Decoder QuickType |
| 136 | -quickType = Jdec.list quickTypeUnion | |
| 136 | +quickType = Jdec.list quickTypeUnion | |
| 137 | 137 | |
| 138 | 138 | quickTypeToString : QuickType -> String |
| 139 | 139 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) |
| @@ -141,7 +141,7 @@ quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeUnion r) | ||
| 141 | 141 | quickTypeUnion : Jdec.Decoder QuickTypeUnion |
| 142 | 142 | quickTypeUnion = |
| 143 | 143 | Jdec.oneOf |
| 144 | - [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType) | |
| 144 | + [ Jdec.map PurpleQuickTypeArrayInQuickTypeUnion (Jdec.list purpleQuickType ) | |
| 145 | 145 | , Jdec.map StringInQuickTypeUnion Jdec.string |
| 146 | 146 | , Jdec.map FluffyQuickTypeInQuickTypeUnion fluffyQuickType |
| 147 | 147 | ] |
Test case
2 generated files · +102 −102test/inputs/json/priority/combinations1.json
Melmarray-type-array--eed288b23e27 / QuickType.elm+51 −51
| @@ -565,48 +565,48 @@ quickType : Jdec.Decoder QuickType | ||
| 565 | 565 | quickType = |
| 566 | 566 | Jdec.succeed QuickType |
| 567 | 567 | |> Jpipe.required "centrodesmose" Jdec.string |
| 568 | - |> Jpipe.required "cerograph" (Jdec.array cerographElement) | |
| 569 | - |> Jpipe.required "chemotherapeutics" (Jdec.array chemotherapeuticElement) | |
| 570 | - |> Jpipe.required "cimelia" (Jdec.array cimeliaElement) | |
| 568 | + |> Jpipe.required "cerograph" (Jdec.array cerographElement ) | |
| 569 | + |> Jpipe.required "chemotherapeutics" (Jdec.array chemotherapeuticElement ) | |
| 570 | + |> Jpipe.required "cimelia" (Jdec.array cimeliaElement ) | |
| 571 | 571 | |> Jpipe.required "citrated" Jdec.int |
| 572 | - |> Jpipe.required "clinodome" (Jdec.array clinodome) | |
| 573 | - |> Jpipe.required "coadjust" (Jdec.array coadjustElement) | |
| 574 | - |> Jpipe.required "consilience" (Jdec.array consilience) | |
| 575 | - |> Jpipe.required "constructor" (Jdec.array constructor) | |
| 576 | - |> Jpipe.required "continuative" (Jdec.array continuative) | |
| 577 | - |> Jpipe.required "credulity" (Jdec.array credulityElement) | |
| 578 | - |> Jpipe.required "creviced" (Jdec.array creviced) | |
| 579 | - |> Jpipe.required "cubiculum" (Jdec.array (Jdec.array (Jdec.nullable Jdec.int))) | |
| 580 | - |> Jpipe.required "deruralize" (Jdec.array deruralizeElement) | |
| 581 | - |> Jpipe.required "diaereses" (Jdec.array diaereseElement) | |
| 582 | - |> Jpipe.required "dissolution" (Jdec.array (Jdec.nullable (Jdec.array (Jdec.null ())))) | |
| 583 | - |> Jpipe.required "downstroke" (Jdec.array downstroke) | |
| 584 | - |> Jpipe.required "electrotautomerism" (Jdec.array (Jdec.nullable Jdec.float)) | |
| 585 | - |> Jpipe.required "eleutheromania" (Jdec.array eleutheromania) | |
| 572 | + |> Jpipe.required "clinodome" (Jdec.array clinodome ) | |
| 573 | + |> Jpipe.required "coadjust" (Jdec.array coadjustElement ) | |
| 574 | + |> Jpipe.required "consilience" (Jdec.array consilience ) | |
| 575 | + |> Jpipe.required "constructor" (Jdec.array constructor ) | |
| 576 | + |> Jpipe.required "continuative" (Jdec.array continuative ) | |
| 577 | + |> Jpipe.required "credulity" (Jdec.array credulityElement ) | |
| 578 | + |> Jpipe.required "creviced" (Jdec.array creviced ) | |
| 579 | + |> Jpipe.required "cubiculum" (Jdec.array (Jdec.array (Jdec.nullable Jdec.int) ) ) | |
| 580 | + |> Jpipe.required "deruralize" (Jdec.array deruralizeElement ) | |
| 581 | + |> Jpipe.required "diaereses" (Jdec.array diaereseElement ) | |
| 582 | + |> Jpipe.required "dissolution" (Jdec.array (Jdec.nullable (Jdec.array (Jdec.null ()) )) ) | |
| 583 | + |> Jpipe.required "downstroke" (Jdec.array downstroke ) | |
| 584 | + |> Jpipe.required "electrotautomerism" (Jdec.array (Jdec.nullable Jdec.float) ) | |
| 585 | + |> Jpipe.required "eleutheromania" (Jdec.array eleutheromania ) | |
| 586 | 586 | |> Jpipe.required "encrust" encrust |
| 587 | - |> Jpipe.required "entomoid" (Jdec.array entomoid) | |
| 588 | - |> Jpipe.required "epipaleolithic" (Jdec.array epipaleolithic) | |
| 589 | - |> Jpipe.required "expropriable" (Jdec.array expropriable) | |
| 590 | - |> Jpipe.required "faggingly" (Jdec.array fagginglyElement) | |
| 591 | - |> Jpipe.required "fenks" (Jdec.array fenkElement) | |
| 592 | - |> Jpipe.required "flagmaking" (Jdec.array flagmakingElement) | |
| 593 | - |> Jpipe.required "fluorometer" (Jdec.array fluorometer) | |
| 594 | - |> Jpipe.required "fulsome" (Jdec.array (Jdec.nullable Jdec.int)) | |
| 595 | - |> Jpipe.required "fuzzy" (Jdec.array fuzzy) | |
| 596 | - |> Jpipe.required "gardenwards" (Jdec.array gardenward) | |
| 597 | - |> Jpipe.required "generalissimo" (Jdec.array generalissimo) | |
| 598 | - |> Jpipe.required "habeas" (Jdec.array (Jdec.nullable (Jdec.dict Jdec.int))) | |
| 599 | - |> Jpipe.required "hemicrystalline" (Jdec.array hemicrystalline) | |
| 600 | - |> Jpipe.required "hemocoele" (Jdec.array hemocoeleElement) | |
| 601 | - |> Jpipe.required "hoister" (Jdec.array hoister) | |
| 602 | - |> Jpipe.required "hyperpiesis" (Jdec.array hyperpiesi) | |
| 603 | - |> Jpipe.required "hyppish" (Jdec.array hyppish) | |
| 604 | - |> Jpipe.required "idealizer" (Jdec.array idealizer) | |
| 605 | - |> Jpipe.required "incrustator" (Jdec.array incrustator) | |
| 606 | - |> Jpipe.required "intentiveness" (Jdec.array intentiveness) | |
| 587 | + |> Jpipe.required "entomoid" (Jdec.array entomoid ) | |
| 588 | + |> Jpipe.required "epipaleolithic" (Jdec.array epipaleolithic ) | |
| 589 | + |> Jpipe.required "expropriable" (Jdec.array expropriable ) | |
| 590 | + |> Jpipe.required "faggingly" (Jdec.array fagginglyElement ) | |
| 591 | + |> Jpipe.required "fenks" (Jdec.array fenkElement ) | |
| 592 | + |> Jpipe.required "flagmaking" (Jdec.array flagmakingElement ) | |
| 593 | + |> Jpipe.required "fluorometer" (Jdec.array fluorometer ) | |
| 594 | + |> Jpipe.required "fulsome" (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 595 | + |> Jpipe.required "fuzzy" (Jdec.array fuzzy ) | |
| 596 | + |> Jpipe.required "gardenwards" (Jdec.array gardenward ) | |
| 597 | + |> Jpipe.required "generalissimo" (Jdec.array generalissimo ) | |
| 598 | + |> Jpipe.required "habeas" (Jdec.array (Jdec.nullable (Jdec.dict Jdec.int)) ) | |
| 599 | + |> Jpipe.required "hemicrystalline" (Jdec.array hemicrystalline ) | |
| 600 | + |> Jpipe.required "hemocoele" (Jdec.array hemocoeleElement ) | |
| 601 | + |> Jpipe.required "hoister" (Jdec.array hoister ) | |
| 602 | + |> Jpipe.required "hyperpiesis" (Jdec.array hyperpiesi ) | |
| 603 | + |> Jpipe.required "hyppish" (Jdec.array hyppish ) | |
| 604 | + |> Jpipe.required "idealizer" (Jdec.array idealizer ) | |
| 605 | + |> Jpipe.required "incrustator" (Jdec.array incrustator ) | |
| 606 | + |> Jpipe.required "intentiveness" (Jdec.array intentiveness ) | |
| 607 | 607 | |> Jpipe.required "interacinar" interacinar |
| 608 | - |> Jpipe.required "intercorrelation" (Jdec.array (Jdec.nullable (Jdec.array Jdec.int))) | |
| 609 | - |> Jpipe.required "jacutinga" (Jdec.array jacutinga) | |
| 608 | + |> Jpipe.required "intercorrelation" (Jdec.array (Jdec.nullable (Jdec.array Jdec.int )) ) | |
| 609 | + |> Jpipe.required "jacutinga" (Jdec.array jacutinga ) | |
| 610 | 610 | |
| 611 | 611 | encodeQuickType : QuickType -> Jenc.Value |
| 612 | 612 | encodeQuickType x = |
| @@ -793,7 +793,7 @@ encodeChemotherapeuticClass x = | ||
| 793 | 793 | cimeliaElement : Jdec.Decoder CimeliaElement |
| 794 | 794 | cimeliaElement = |
| 795 | 795 | Jdec.oneOf |
| 796 | - [ Jdec.map IntegerArrayInCimeliaElement (Jdec.array Jdec.int) | |
| 796 | + [ Jdec.map IntegerArrayInCimeliaElement (Jdec.array Jdec.int ) | |
| 797 | 797 | , Jdec.null NullInCimeliaElement |
| 798 | 798 | , Jdec.map CimeliaClassInCimeliaElement cimeliaClass |
| 799 | 799 | ] |
| @@ -1022,7 +1022,7 @@ encodeCreviced x = case x of | ||
| 1022 | 1022 | deruralizeElement : Jdec.Decoder DeruralizeElement |
| 1023 | 1023 | deruralizeElement = |
| 1024 | 1024 | Jdec.oneOf |
| 1025 | - [ Jdec.map NullArrayInDeruralizeElement (Jdec.array (Jdec.null ())) | |
| 1025 | + [ Jdec.map NullArrayInDeruralizeElement (Jdec.array (Jdec.null ()) ) | |
| 1026 | 1026 | , Jdec.map BoolInDeruralizeElement Jdec.bool |
| 1027 | 1027 | , Jdec.map DeruralizeClassInDeruralizeElement deruralizeClass |
| 1028 | 1028 | ] |
| @@ -1085,7 +1085,7 @@ encodeDeruralizeClass x = | ||
| 1085 | 1085 | diaereseElement : Jdec.Decoder DiaereseElement |
| 1086 | 1086 | diaereseElement = |
| 1087 | 1087 | Jdec.oneOf |
| 1088 | - [ Jdec.map IntegerArrayInDiaereseElement (Jdec.array Jdec.int) | |
| 1088 | + [ Jdec.map IntegerArrayInDiaereseElement (Jdec.array Jdec.int ) | |
| 1089 | 1089 | , Jdec.map BoolInDiaereseElement Jdec.bool |
| 1090 | 1090 | , Jdec.map DiaereseClassInDiaereseElement diaereseClass |
| 1091 | 1091 | ] |
| @@ -1148,7 +1148,7 @@ encodeDiaereseClass x = | ||
| 1148 | 1148 | downstroke : Jdec.Decoder Downstroke |
| 1149 | 1149 | downstroke = |
| 1150 | 1150 | Jdec.oneOf |
| 1151 | - [ Jdec.map NullArrayInDownstroke (Jdec.array (Jdec.null ())) | |
| 1151 | + [ Jdec.map NullArrayInDownstroke (Jdec.array (Jdec.null ()) ) | |
| 1152 | 1152 | , Jdec.map BoolInDownstroke Jdec.bool |
| 1153 | 1153 | , Jdec.map StringInDownstroke Jdec.string |
| 1154 | 1154 | ] |
| @@ -1237,7 +1237,7 @@ encodeEntomoid x = case x of | ||
| 1237 | 1237 | epipaleolithic : Jdec.Decoder Epipaleolithic |
| 1238 | 1238 | epipaleolithic = |
| 1239 | 1239 | Jdec.oneOf |
| 1240 | - [ Jdec.map IntegerArrayInEpipaleolithic (Jdec.array Jdec.int) | |
| 1240 | + [ Jdec.map IntegerArrayInEpipaleolithic (Jdec.array Jdec.int ) | |
| 1241 | 1241 | , Jdec.map DoubleInEpipaleolithic Jdec.float |
| 1242 | 1242 | ] |
| 1243 | 1243 | |
| @@ -1249,7 +1249,7 @@ encodeEpipaleolithic x = case x of | ||
| 1249 | 1249 | expropriable : Jdec.Decoder Expropriable |
| 1250 | 1250 | expropriable = |
| 1251 | 1251 | Jdec.oneOf |
| 1252 | - [ Jdec.map NullArrayInExpropriable (Jdec.array (Jdec.null ())) | |
| 1252 | + [ Jdec.map NullArrayInExpropriable (Jdec.array (Jdec.null ()) ) | |
| 1253 | 1253 | , Jdec.map DoubleInExpropriable Jdec.float |
| 1254 | 1254 | , Jdec.map CimeliaClassInExpropriable cimeliaClass |
| 1255 | 1255 | ] |
| @@ -1474,7 +1474,7 @@ encodeFuzzy x = case x of | ||
| 1474 | 1474 | gardenward : Jdec.Decoder Gardenward |
| 1475 | 1475 | gardenward = |
| 1476 | 1476 | Jdec.oneOf |
| 1477 | - [ Jdec.map IntegerArrayInGardenward (Jdec.array Jdec.int) | |
| 1477 | + [ Jdec.map IntegerArrayInGardenward (Jdec.array Jdec.int ) | |
| 1478 | 1478 | , Jdec.map BoolInGardenward Jdec.bool |
| 1479 | 1479 | , Jdec.map StringInGardenward Jdec.string |
| 1480 | 1480 | ] |
| @@ -1514,7 +1514,7 @@ encodeHemicrystalline x = case x of | ||
| 1514 | 1514 | hemocoeleElement : Jdec.Decoder HemocoeleElement |
| 1515 | 1515 | hemocoeleElement = |
| 1516 | 1516 | Jdec.oneOf |
| 1517 | - [ Jdec.map IntegerArrayInHemocoeleElement (Jdec.array Jdec.int) | |
| 1517 | + [ Jdec.map IntegerArrayInHemocoeleElement (Jdec.array Jdec.int ) | |
| 1518 | 1518 | , Jdec.map HemocoeleClassInHemocoeleElement hemocoeleClass |
| 1519 | 1519 | ] |
| 1520 | 1520 | |
| @@ -1599,7 +1599,7 @@ encodeHoister x = case x of | ||
| 1599 | 1599 | hyperpiesi : Jdec.Decoder Hyperpiesi |
| 1600 | 1600 | hyperpiesi = |
| 1601 | 1601 | Jdec.oneOf |
| 1602 | - [ Jdec.map NullArrayInHyperpiesi (Jdec.array (Jdec.null ())) | |
| 1602 | + [ Jdec.map NullArrayInHyperpiesi (Jdec.array (Jdec.null ()) ) | |
| 1603 | 1603 | , Jdec.null NullInHyperpiesi |
| 1604 | 1604 | , Jdec.map CimeliaClassInHyperpiesi cimeliaClass |
| 1605 | 1605 | ] |
| @@ -1627,7 +1627,7 @@ encodeHyppish x = case x of | ||
| 1627 | 1627 | idealizer : Jdec.Decoder Idealizer |
| 1628 | 1628 | idealizer = |
| 1629 | 1629 | Jdec.oneOf |
| 1630 | - [ Jdec.map NullArrayInIdealizer (Jdec.array (Jdec.null ())) | |
| 1630 | + [ Jdec.map NullArrayInIdealizer (Jdec.array (Jdec.null ()) ) | |
| 1631 | 1631 | , Jdec.map IntegerInIdealizer Jdec.int |
| 1632 | 1632 | , Jdec.map CimeliaClassInIdealizer cimeliaClass |
| 1633 | 1633 | ] |
| @@ -1641,7 +1641,7 @@ encodeIdealizer x = case x of | ||
| 1641 | 1641 | incrustator : Jdec.Decoder Incrustator |
| 1642 | 1642 | incrustator = |
| 1643 | 1643 | Jdec.oneOf |
| 1644 | - [ Jdec.map IntegerArrayInIncrustator (Jdec.array Jdec.int) | |
| 1644 | + [ Jdec.map IntegerArrayInIncrustator (Jdec.array Jdec.int ) | |
| 1645 | 1645 | , Jdec.map IntegerInIncrustator Jdec.int |
| 1646 | 1646 | , Jdec.map StringInIncrustator Jdec.string |
| 1647 | 1647 | ] |
| @@ -1688,7 +1688,7 @@ encodeInteracinar x = | ||
| 1688 | 1688 | jacutinga : Jdec.Decoder Jacutinga |
| 1689 | 1689 | jacutinga = |
| 1690 | 1690 | Jdec.oneOf |
| 1691 | - [ Jdec.map IntegerArrayInJacutinga (Jdec.array Jdec.int) | |
| 1691 | + [ Jdec.map IntegerArrayInJacutinga (Jdec.array Jdec.int ) | |
| 1692 | 1692 | , Jdec.map UnionMapInJacutinga (Jdec.dict (Jdec.nullable Jdec.int)) |
| 1693 | 1693 | ] |
Melmdefault / QuickType.elm+51 −51
| @@ -564,48 +564,48 @@ quickType : Jdec.Decoder QuickType | ||
| 564 | 564 | quickType = |
| 565 | 565 | Jdec.succeed QuickType |
| 566 | 566 | |> Jpipe.required "centrodesmose" Jdec.string |
| 567 | - |> Jpipe.required "cerograph" (Jdec.list cerographElement) | |
| 568 | - |> Jpipe.required "chemotherapeutics" (Jdec.list chemotherapeuticElement) | |
| 569 | - |> Jpipe.required "cimelia" (Jdec.list cimeliaElement) | |
| 567 | + |> Jpipe.required "cerograph" (Jdec.list cerographElement ) | |
| 568 | + |> Jpipe.required "chemotherapeutics" (Jdec.list chemotherapeuticElement ) | |
| 569 | + |> Jpipe.required "cimelia" (Jdec.list cimeliaElement ) | |
| 570 | 570 | |> Jpipe.required "citrated" Jdec.int |
| 571 | - |> Jpipe.required "clinodome" (Jdec.list clinodome) | |
| 572 | - |> Jpipe.required "coadjust" (Jdec.list coadjustElement) | |
| 573 | - |> Jpipe.required "consilience" (Jdec.list consilience) | |
| 574 | - |> Jpipe.required "constructor" (Jdec.list constructor) | |
| 575 | - |> Jpipe.required "continuative" (Jdec.list continuative) | |
| 576 | - |> Jpipe.required "credulity" (Jdec.list credulityElement) | |
| 577 | - |> Jpipe.required "creviced" (Jdec.list creviced) | |
| 578 | - |> Jpipe.required "cubiculum" (Jdec.list (Jdec.list (Jdec.nullable Jdec.int))) | |
| 579 | - |> Jpipe.required "deruralize" (Jdec.list deruralizeElement) | |
| 580 | - |> Jpipe.required "diaereses" (Jdec.list diaereseElement) | |
| 581 | - |> Jpipe.required "dissolution" (Jdec.list (Jdec.nullable (Jdec.list (Jdec.null ())))) | |
| 582 | - |> Jpipe.required "downstroke" (Jdec.list downstroke) | |
| 583 | - |> Jpipe.required "electrotautomerism" (Jdec.list (Jdec.nullable Jdec.float)) | |
| 584 | - |> Jpipe.required "eleutheromania" (Jdec.list eleutheromania) | |
| 571 | + |> Jpipe.required "clinodome" (Jdec.list clinodome ) | |
| 572 | + |> Jpipe.required "coadjust" (Jdec.list coadjustElement ) | |
| 573 | + |> Jpipe.required "consilience" (Jdec.list consilience ) | |
| 574 | + |> Jpipe.required "constructor" (Jdec.list constructor ) | |
| 575 | + |> Jpipe.required "continuative" (Jdec.list continuative ) | |
| 576 | + |> Jpipe.required "credulity" (Jdec.list credulityElement ) | |
| 577 | + |> Jpipe.required "creviced" (Jdec.list creviced ) | |
| 578 | + |> Jpipe.required "cubiculum" (Jdec.list (Jdec.list (Jdec.nullable Jdec.int) ) ) | |
| 579 | + |> Jpipe.required "deruralize" (Jdec.list deruralizeElement ) | |
| 580 | + |> Jpipe.required "diaereses" (Jdec.list diaereseElement ) | |
| 581 | + |> Jpipe.required "dissolution" (Jdec.list (Jdec.nullable (Jdec.list (Jdec.null ()) )) ) | |
| 582 | + |> Jpipe.required "downstroke" (Jdec.list downstroke ) | |
| 583 | + |> Jpipe.required "electrotautomerism" (Jdec.list (Jdec.nullable Jdec.float) ) | |
| 584 | + |> Jpipe.required "eleutheromania" (Jdec.list eleutheromania ) | |
| 585 | 585 | |> Jpipe.required "encrust" encrust |
| 586 | - |> Jpipe.required "entomoid" (Jdec.list entomoid) | |
| 587 | - |> Jpipe.required "epipaleolithic" (Jdec.list epipaleolithic) | |
| 588 | - |> Jpipe.required "expropriable" (Jdec.list expropriable) | |
| 589 | - |> Jpipe.required "faggingly" (Jdec.list fagginglyElement) | |
| 590 | - |> Jpipe.required "fenks" (Jdec.list fenkElement) | |
| 591 | - |> Jpipe.required "flagmaking" (Jdec.list flagmakingElement) | |
| 592 | - |> Jpipe.required "fluorometer" (Jdec.list fluorometer) | |
| 593 | - |> Jpipe.required "fulsome" (Jdec.list (Jdec.nullable Jdec.int)) | |
| 594 | - |> Jpipe.required "fuzzy" (Jdec.list fuzzy) | |
| 595 | - |> Jpipe.required "gardenwards" (Jdec.list gardenward) | |
| 596 | - |> Jpipe.required "generalissimo" (Jdec.list generalissimo) | |
| 597 | - |> Jpipe.required "habeas" (Jdec.list (Jdec.nullable (Jdec.dict Jdec.int))) | |
| 598 | - |> Jpipe.required "hemicrystalline" (Jdec.list hemicrystalline) | |
| 599 | - |> Jpipe.required "hemocoele" (Jdec.list hemocoeleElement) | |
| 600 | - |> Jpipe.required "hoister" (Jdec.list hoister) | |
| 601 | - |> Jpipe.required "hyperpiesis" (Jdec.list hyperpiesi) | |
| 602 | - |> Jpipe.required "hyppish" (Jdec.list hyppish) | |
| 603 | - |> Jpipe.required "idealizer" (Jdec.list idealizer) | |
| 604 | - |> Jpipe.required "incrustator" (Jdec.list incrustator) | |
| 605 | - |> Jpipe.required "intentiveness" (Jdec.list intentiveness) | |
| 586 | + |> Jpipe.required "entomoid" (Jdec.list entomoid ) | |
| 587 | + |> Jpipe.required "epipaleolithic" (Jdec.list epipaleolithic ) | |
| 588 | + |> Jpipe.required "expropriable" (Jdec.list expropriable ) | |
| 589 | + |> Jpipe.required "faggingly" (Jdec.list fagginglyElement ) | |
| 590 | + |> Jpipe.required "fenks" (Jdec.list fenkElement ) | |
| 591 | + |> Jpipe.required "flagmaking" (Jdec.list flagmakingElement ) | |
| 592 | + |> Jpipe.required "fluorometer" (Jdec.list fluorometer ) | |
| 593 | + |> Jpipe.required "fulsome" (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 594 | + |> Jpipe.required "fuzzy" (Jdec.list fuzzy ) | |
| 595 | + |> Jpipe.required "gardenwards" (Jdec.list gardenward ) | |
| 596 | + |> Jpipe.required "generalissimo" (Jdec.list generalissimo ) | |
| 597 | + |> Jpipe.required "habeas" (Jdec.list (Jdec.nullable (Jdec.dict Jdec.int)) ) | |
| 598 | + |> Jpipe.required "hemicrystalline" (Jdec.list hemicrystalline ) | |
| 599 | + |> Jpipe.required "hemocoele" (Jdec.list hemocoeleElement ) | |
| 600 | + |> Jpipe.required "hoister" (Jdec.list hoister ) | |
| 601 | + |> Jpipe.required "hyperpiesis" (Jdec.list hyperpiesi ) | |
| 602 | + |> Jpipe.required "hyppish" (Jdec.list hyppish ) | |
| 603 | + |> Jpipe.required "idealizer" (Jdec.list idealizer ) | |
| 604 | + |> Jpipe.required "incrustator" (Jdec.list incrustator ) | |
| 605 | + |> Jpipe.required "intentiveness" (Jdec.list intentiveness ) | |
| 606 | 606 | |> Jpipe.required "interacinar" interacinar |
| 607 | - |> Jpipe.required "intercorrelation" (Jdec.list (Jdec.nullable (Jdec.list Jdec.int))) | |
| 608 | - |> Jpipe.required "jacutinga" (Jdec.list jacutinga) | |
| 607 | + |> Jpipe.required "intercorrelation" (Jdec.list (Jdec.nullable (Jdec.list Jdec.int )) ) | |
| 608 | + |> Jpipe.required "jacutinga" (Jdec.list jacutinga ) | |
| 609 | 609 | |
| 610 | 610 | encodeQuickType : QuickType -> Jenc.Value |
| 611 | 611 | encodeQuickType x = |
| @@ -792,7 +792,7 @@ encodeChemotherapeuticClass x = | ||
| 792 | 792 | cimeliaElement : Jdec.Decoder CimeliaElement |
| 793 | 793 | cimeliaElement = |
| 794 | 794 | Jdec.oneOf |
| 795 | - [ Jdec.map IntegerArrayInCimeliaElement (Jdec.list Jdec.int) | |
| 795 | + [ Jdec.map IntegerArrayInCimeliaElement (Jdec.list Jdec.int ) | |
| 796 | 796 | , Jdec.null NullInCimeliaElement |
| 797 | 797 | , Jdec.map CimeliaClassInCimeliaElement cimeliaClass |
| 798 | 798 | ] |
| @@ -1021,7 +1021,7 @@ encodeCreviced x = case x of | ||
| 1021 | 1021 | deruralizeElement : Jdec.Decoder DeruralizeElement |
| 1022 | 1022 | deruralizeElement = |
| 1023 | 1023 | Jdec.oneOf |
| 1024 | - [ Jdec.map NullArrayInDeruralizeElement (Jdec.list (Jdec.null ())) | |
| 1024 | + [ Jdec.map NullArrayInDeruralizeElement (Jdec.list (Jdec.null ()) ) | |
| 1025 | 1025 | , Jdec.map BoolInDeruralizeElement Jdec.bool |
| 1026 | 1026 | , Jdec.map DeruralizeClassInDeruralizeElement deruralizeClass |
| 1027 | 1027 | ] |
| @@ -1084,7 +1084,7 @@ encodeDeruralizeClass x = | ||
| 1084 | 1084 | diaereseElement : Jdec.Decoder DiaereseElement |
| 1085 | 1085 | diaereseElement = |
| 1086 | 1086 | Jdec.oneOf |
| 1087 | - [ Jdec.map IntegerArrayInDiaereseElement (Jdec.list Jdec.int) | |
| 1087 | + [ Jdec.map IntegerArrayInDiaereseElement (Jdec.list Jdec.int ) | |
| 1088 | 1088 | , Jdec.map BoolInDiaereseElement Jdec.bool |
| 1089 | 1089 | , Jdec.map DiaereseClassInDiaereseElement diaereseClass |
| 1090 | 1090 | ] |
| @@ -1147,7 +1147,7 @@ encodeDiaereseClass x = | ||
| 1147 | 1147 | downstroke : Jdec.Decoder Downstroke |
| 1148 | 1148 | downstroke = |
| 1149 | 1149 | Jdec.oneOf |
| 1150 | - [ Jdec.map NullArrayInDownstroke (Jdec.list (Jdec.null ())) | |
| 1150 | + [ Jdec.map NullArrayInDownstroke (Jdec.list (Jdec.null ()) ) | |
| 1151 | 1151 | , Jdec.map BoolInDownstroke Jdec.bool |
| 1152 | 1152 | , Jdec.map StringInDownstroke Jdec.string |
| 1153 | 1153 | ] |
| @@ -1236,7 +1236,7 @@ encodeEntomoid x = case x of | ||
| 1236 | 1236 | epipaleolithic : Jdec.Decoder Epipaleolithic |
| 1237 | 1237 | epipaleolithic = |
| 1238 | 1238 | Jdec.oneOf |
| 1239 | - [ Jdec.map IntegerArrayInEpipaleolithic (Jdec.list Jdec.int) | |
| 1239 | + [ Jdec.map IntegerArrayInEpipaleolithic (Jdec.list Jdec.int ) | |
| 1240 | 1240 | , Jdec.map DoubleInEpipaleolithic Jdec.float |
| 1241 | 1241 | ] |
| 1242 | 1242 | |
| @@ -1248,7 +1248,7 @@ encodeEpipaleolithic x = case x of | ||
| 1248 | 1248 | expropriable : Jdec.Decoder Expropriable |
| 1249 | 1249 | expropriable = |
| 1250 | 1250 | Jdec.oneOf |
| 1251 | - [ Jdec.map NullArrayInExpropriable (Jdec.list (Jdec.null ())) | |
| 1251 | + [ Jdec.map NullArrayInExpropriable (Jdec.list (Jdec.null ()) ) | |
| 1252 | 1252 | , Jdec.map DoubleInExpropriable Jdec.float |
| 1253 | 1253 | , Jdec.map CimeliaClassInExpropriable cimeliaClass |
| 1254 | 1254 | ] |
| @@ -1473,7 +1473,7 @@ encodeFuzzy x = case x of | ||
| 1473 | 1473 | gardenward : Jdec.Decoder Gardenward |
| 1474 | 1474 | gardenward = |
| 1475 | 1475 | Jdec.oneOf |
| 1476 | - [ Jdec.map IntegerArrayInGardenward (Jdec.list Jdec.int) | |
| 1476 | + [ Jdec.map IntegerArrayInGardenward (Jdec.list Jdec.int ) | |
| 1477 | 1477 | , Jdec.map BoolInGardenward Jdec.bool |
| 1478 | 1478 | , Jdec.map StringInGardenward Jdec.string |
| 1479 | 1479 | ] |
| @@ -1513,7 +1513,7 @@ encodeHemicrystalline x = case x of | ||
| 1513 | 1513 | hemocoeleElement : Jdec.Decoder HemocoeleElement |
| 1514 | 1514 | hemocoeleElement = |
| 1515 | 1515 | Jdec.oneOf |
| 1516 | - [ Jdec.map IntegerArrayInHemocoeleElement (Jdec.list Jdec.int) | |
| 1516 | + [ Jdec.map IntegerArrayInHemocoeleElement (Jdec.list Jdec.int ) | |
| 1517 | 1517 | , Jdec.map HemocoeleClassInHemocoeleElement hemocoeleClass |
| 1518 | 1518 | ] |
| 1519 | 1519 | |
| @@ -1598,7 +1598,7 @@ encodeHoister x = case x of | ||
| 1598 | 1598 | hyperpiesi : Jdec.Decoder Hyperpiesi |
| 1599 | 1599 | hyperpiesi = |
| 1600 | 1600 | Jdec.oneOf |
| 1601 | - [ Jdec.map NullArrayInHyperpiesi (Jdec.list (Jdec.null ())) | |
| 1601 | + [ Jdec.map NullArrayInHyperpiesi (Jdec.list (Jdec.null ()) ) | |
| 1602 | 1602 | , Jdec.null NullInHyperpiesi |
| 1603 | 1603 | , Jdec.map CimeliaClassInHyperpiesi cimeliaClass |
| 1604 | 1604 | ] |
| @@ -1626,7 +1626,7 @@ encodeHyppish x = case x of | ||
| 1626 | 1626 | idealizer : Jdec.Decoder Idealizer |
| 1627 | 1627 | idealizer = |
| 1628 | 1628 | Jdec.oneOf |
| 1629 | - [ Jdec.map NullArrayInIdealizer (Jdec.list (Jdec.null ())) | |
| 1629 | + [ Jdec.map NullArrayInIdealizer (Jdec.list (Jdec.null ()) ) | |
| 1630 | 1630 | , Jdec.map IntegerInIdealizer Jdec.int |
| 1631 | 1631 | , Jdec.map CimeliaClassInIdealizer cimeliaClass |
| 1632 | 1632 | ] |
| @@ -1640,7 +1640,7 @@ encodeIdealizer x = case x of | ||
| 1640 | 1640 | incrustator : Jdec.Decoder Incrustator |
| 1641 | 1641 | incrustator = |
| 1642 | 1642 | Jdec.oneOf |
| 1643 | - [ Jdec.map IntegerArrayInIncrustator (Jdec.list Jdec.int) | |
| 1643 | + [ Jdec.map IntegerArrayInIncrustator (Jdec.list Jdec.int ) | |
| 1644 | 1644 | , Jdec.map IntegerInIncrustator Jdec.int |
| 1645 | 1645 | , Jdec.map StringInIncrustator Jdec.string |
| 1646 | 1646 | ] |
| @@ -1687,7 +1687,7 @@ encodeInteracinar x = | ||
| 1687 | 1687 | jacutinga : Jdec.Decoder Jacutinga |
| 1688 | 1688 | jacutinga = |
| 1689 | 1689 | Jdec.oneOf |
| 1690 | - [ Jdec.map IntegerArrayInJacutinga (Jdec.list Jdec.int) | |
| 1690 | + [ Jdec.map IntegerArrayInJacutinga (Jdec.list Jdec.int ) | |
| 1691 | 1691 | , Jdec.map UnionMapInJacutinga (Jdec.dict (Jdec.nullable Jdec.int)) |
| 1692 | 1692 | ] |
Test case
2 generated files · +128 −128test/inputs/json/priority/combinations2.json
Melmarray-type-array--eed288b23e27 / QuickType.elm+64 −64
| @@ -519,50 +519,50 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 519 | 519 | quickType : Jdec.Decoder QuickType |
| 520 | 520 | quickType = |
| 521 | 521 | Jdec.succeed QuickType |
| 522 | - |> Jpipe.required "Abranchiata" (Jdec.array abranchiata) | |
| 523 | - |> Jpipe.required "academe" (Jdec.array academe) | |
| 524 | - |> Jpipe.required "acquirable" (Jdec.array acquirable) | |
| 525 | - |> Jpipe.required "aerometry" (Jdec.array aerometry) | |
| 526 | - |> Jpipe.required "alexin" (Jdec.array alexin) | |
| 527 | - |> Jpipe.required "alleviate" (Jdec.array alleviateElement) | |
| 528 | - |> Jpipe.required "amaas" (Jdec.array amaa) | |
| 529 | - |> Jpipe.required "ambassage" (Jdec.array ambassage) | |
| 530 | - |> Jpipe.required "amphithyron" (Jdec.array (Jdec.nullable amphithyron)) | |
| 531 | - |> Jpipe.required "Andriana" (Jdec.array (Jdec.nullable Jdec.string)) | |
| 532 | - |> Jpipe.required "ankee" (Jdec.array ankeeElement) | |
| 533 | - |> Jpipe.required "annihilator" (Jdec.array (Jdec.nullable (Jdec.dict (Jdec.nullable Jdec.int)))) | |
| 522 | + |> Jpipe.required "Abranchiata" (Jdec.array abranchiata ) | |
| 523 | + |> Jpipe.required "academe" (Jdec.array academe ) | |
| 524 | + |> Jpipe.required "acquirable" (Jdec.array acquirable ) | |
| 525 | + |> Jpipe.required "aerometry" (Jdec.array aerometry ) | |
| 526 | + |> Jpipe.required "alexin" (Jdec.array alexin ) | |
| 527 | + |> Jpipe.required "alleviate" (Jdec.array alleviateElement ) | |
| 528 | + |> Jpipe.required "amaas" (Jdec.array amaa ) | |
| 529 | + |> Jpipe.required "ambassage" (Jdec.array ambassage ) | |
| 530 | + |> Jpipe.required "amphithyron" (Jdec.array (Jdec.nullable amphithyron) ) | |
| 531 | + |> Jpipe.required "Andriana" (Jdec.array (Jdec.nullable Jdec.string) ) | |
| 532 | + |> Jpipe.required "ankee" (Jdec.array ankeeElement ) | |
| 533 | + |> Jpipe.required "annihilator" (Jdec.array (Jdec.nullable (Jdec.dict (Jdec.nullable Jdec.int))) ) | |
| 534 | 534 | |> Jpipe.required "annulose" (Jdec.null ()) |
| 535 | - |> Jpipe.required "Ansarie" (Jdec.array ansarieElement) | |
| 536 | - |> Jpipe.required "aphasia" (Jdec.array aphasia) | |
| 537 | - |> Jpipe.required "asprawl" (Jdec.array asprawl) | |
| 538 | - |> Jpipe.required "attractive" (Jdec.array (Jdec.nullable Jdec.bool)) | |
| 535 | + |> Jpipe.required "Ansarie" (Jdec.array ansarieElement ) | |
| 536 | + |> Jpipe.required "aphasia" (Jdec.array aphasia ) | |
| 537 | + |> Jpipe.required "asprawl" (Jdec.array asprawl ) | |
| 538 | + |> Jpipe.required "attractive" (Jdec.array (Jdec.nullable Jdec.bool) ) | |
| 539 | 539 | |> Jpipe.required "barksome" (Jdec.dict Jdec.int) |
| 540 | - |> Jpipe.required "bedesman" (Jdec.array bedesman) | |
| 541 | - |> Jpipe.required "belard" (Jdec.array belard) | |
| 542 | - |> Jpipe.required "bocking" (Jdec.array bocking) | |
| 543 | - |> Jpipe.required "brawlingly" (Jdec.array brawlingly) | |
| 544 | - |> Jpipe.required "brookie" (Jdec.array brookie) | |
| 545 | - |> Jpipe.required "bumboatman" (Jdec.array bumboatman) | |
| 546 | - |> Jpipe.required "bystreet" (Jdec.array (Jdec.null ())) | |
| 547 | - |> Jpipe.required "calaverite" (Jdec.array calaverite) | |
| 548 | - |> Jpipe.required "catallactic" (Jdec.array catallactic) | |
| 549 | - |> Jpipe.required "cemental" (Jdec.array cemental) | |
| 550 | - |> Jpipe.required "Chytridiaceae" (Jdec.array chytridiaceaeElement) | |
| 551 | - |> Jpipe.required "Discordia" (Jdec.array discordiaElement) | |
| 552 | - |> Jpipe.required "Endomyces" (Jdec.array endomyce) | |
| 553 | - |> Jpipe.required "Epinephelidae" (Jdec.array epinephelidae) | |
| 554 | - |> Jpipe.required "Eupatorium" (Jdec.array eupatorium) | |
| 555 | - |> Jpipe.required "Gryphosaurus" (Jdec.array gryphosaurusElement) | |
| 556 | - |> Jpipe.required "Koryak" (Jdec.array koryak) | |
| 557 | - |> Jpipe.required "Lavinia" (Jdec.array laviniaElement) | |
| 558 | - |> Jpipe.required "Oskar" (Jdec.array oskarElement) | |
| 559 | - |> Jpipe.required "Rebecca" (Jdec.array rebeccaElement) | |
| 560 | - |> Jpipe.required "Rhomboganoidei" (Jdec.array rhomboganoidei) | |
| 540 | + |> Jpipe.required "bedesman" (Jdec.array bedesman ) | |
| 541 | + |> Jpipe.required "belard" (Jdec.array belard ) | |
| 542 | + |> Jpipe.required "bocking" (Jdec.array bocking ) | |
| 543 | + |> Jpipe.required "brawlingly" (Jdec.array brawlingly ) | |
| 544 | + |> Jpipe.required "brookie" (Jdec.array brookie ) | |
| 545 | + |> Jpipe.required "bumboatman" (Jdec.array bumboatman ) | |
| 546 | + |> Jpipe.required "bystreet" (Jdec.array (Jdec.null ()) ) | |
| 547 | + |> Jpipe.required "calaverite" (Jdec.array calaverite ) | |
| 548 | + |> Jpipe.required "catallactic" (Jdec.array catallactic ) | |
| 549 | + |> Jpipe.required "cemental" (Jdec.array cemental ) | |
| 550 | + |> Jpipe.required "Chytridiaceae" (Jdec.array chytridiaceaeElement ) | |
| 551 | + |> Jpipe.required "Discordia" (Jdec.array discordiaElement ) | |
| 552 | + |> Jpipe.required "Endomyces" (Jdec.array endomyce ) | |
| 553 | + |> Jpipe.required "Epinephelidae" (Jdec.array epinephelidae ) | |
| 554 | + |> Jpipe.required "Eupatorium" (Jdec.array eupatorium ) | |
| 555 | + |> Jpipe.required "Gryphosaurus" (Jdec.array gryphosaurusElement ) | |
| 556 | + |> Jpipe.required "Koryak" (Jdec.array koryak ) | |
| 557 | + |> Jpipe.required "Lavinia" (Jdec.array laviniaElement ) | |
| 558 | + |> Jpipe.required "Oskar" (Jdec.array oskarElement ) | |
| 559 | + |> Jpipe.required "Rebecca" (Jdec.array rebeccaElement ) | |
| 560 | + |> Jpipe.required "Rhomboganoidei" (Jdec.array rhomboganoidei ) | |
| 561 | 561 | |> Jpipe.required "Rigsmal" Jdec.bool |
| 562 | - |> Jpipe.required "Ruellia" (Jdec.array ruellia) | |
| 563 | - |> Jpipe.required "School" (Jdec.array school) | |
| 564 | - |> Jpipe.required "Shakespearolater" (Jdec.array shakespearolater) | |
| 565 | - |> Jpipe.required "Svan" (Jdec.array Jdec.float) | |
| 562 | + |> Jpipe.required "Ruellia" (Jdec.array ruellia ) | |
| 563 | + |> Jpipe.required "School" (Jdec.array school ) | |
| 564 | + |> Jpipe.required "Shakespearolater" (Jdec.array shakespearolater ) | |
| 565 | + |> Jpipe.required "Svan" (Jdec.array Jdec.float ) | |
| 566 | 566 | |> Jpipe.required "Wayao" (Jdec.dict Jdec.float) |
| 567 | 567 | |
| 568 | 568 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -618,7 +618,7 @@ encodeQuickType x = | ||
| 618 | 618 | abranchiata : Jdec.Decoder Abranchiata |
| 619 | 619 | abranchiata = |
| 620 | 620 | Jdec.oneOf |
| 621 | - [ Jdec.map IntegerArrayInAbranchiata (Jdec.array Jdec.int) | |
| 621 | + [ Jdec.map IntegerArrayInAbranchiata (Jdec.array Jdec.int ) | |
| 622 | 622 | , Jdec.map IntegerInAbranchiata Jdec.int |
| 623 | 623 | , Jdec.null NullInAbranchiata |
| 624 | 624 | ] |
| @@ -632,7 +632,7 @@ encodeAbranchiata x = case x of | ||
| 632 | 632 | academe : Jdec.Decoder Academe |
| 633 | 633 | academe = |
| 634 | 634 | Jdec.oneOf |
| 635 | - [ Jdec.map IntegerArrayInAcademe (Jdec.array Jdec.int) | |
| 635 | + [ Jdec.map IntegerArrayInAcademe (Jdec.array Jdec.int ) | |
| 636 | 636 | , Jdec.map IntegerInAcademe Jdec.int |
| 637 | 637 | , Jdec.map IntegerMapInAcademe (Jdec.dict Jdec.int) |
| 638 | 638 | ] |
| @@ -646,7 +646,7 @@ encodeAcademe x = case x of | ||
| 646 | 646 | acquirable : Jdec.Decoder Acquirable |
| 647 | 647 | acquirable = |
| 648 | 648 | Jdec.oneOf |
| 649 | - [ Jdec.map UnionArrayInAcquirable (Jdec.array (Jdec.nullable Jdec.int)) | |
| 649 | + [ Jdec.map UnionArrayInAcquirable (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 650 | 650 | , Jdec.map IntegerMapInAcquirable (Jdec.dict Jdec.int) |
| 651 | 651 | ] |
| 652 | 652 | |
| @@ -670,7 +670,7 @@ encodeAerometry x = case x of | ||
| 670 | 670 | alexin : Jdec.Decoder Alexin |
| 671 | 671 | alexin = |
| 672 | 672 | Jdec.oneOf |
| 673 | - [ Jdec.map IntegerArrayInAlexin (Jdec.array Jdec.int) | |
| 673 | + [ Jdec.map IntegerArrayInAlexin (Jdec.array Jdec.int ) | |
| 674 | 674 | , Jdec.map BoolInAlexin Jdec.bool |
| 675 | 675 | ] |
| 676 | 676 | |
| @@ -682,7 +682,7 @@ encodeAlexin x = case x of | ||
| 682 | 682 | alleviateElement : Jdec.Decoder AlleviateElement |
| 683 | 683 | alleviateElement = |
| 684 | 684 | Jdec.oneOf |
| 685 | - [ Jdec.map UnionArrayInAlleviateElement (Jdec.array (Jdec.nullable Jdec.int)) | |
| 685 | + [ Jdec.map UnionArrayInAlleviateElement (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 686 | 686 | , Jdec.map AlleviateClassInAlleviateElement alleviateClass |
| 687 | 687 | ] |
| 688 | 688 | |
| @@ -776,7 +776,7 @@ encodeRebecca x = | ||
| 776 | 776 | ambassage : Jdec.Decoder Ambassage |
| 777 | 777 | ambassage = |
| 778 | 778 | Jdec.oneOf |
| 779 | - [ Jdec.map NullArrayInAmbassage (Jdec.array (Jdec.null ())) | |
| 779 | + [ Jdec.map NullArrayInAmbassage (Jdec.array (Jdec.null ()) ) | |
| 780 | 780 | , Jdec.map StringInAmbassage Jdec.string |
| 781 | 781 | ] |
| 782 | 782 | |
| @@ -847,7 +847,7 @@ encodeAmphithyron x = | ||
| 847 | 847 | ankeeElement : Jdec.Decoder AnkeeElement |
| 848 | 848 | ankeeElement = |
| 849 | 849 | Jdec.oneOf |
| 850 | - [ Jdec.map IntegerArrayInAnkeeElement (Jdec.array Jdec.int) | |
| 850 | + [ Jdec.map IntegerArrayInAnkeeElement (Jdec.array Jdec.int ) | |
| 851 | 851 | , Jdec.map IntegerInAnkeeElement Jdec.int |
| 852 | 852 | , Jdec.map AnkeeClassInAnkeeElement ankeeClass |
| 853 | 853 | ] |
| @@ -910,7 +910,7 @@ encodeAnkeeClass x = | ||
| 910 | 910 | ansarieElement : Jdec.Decoder AnsarieElement |
| 911 | 911 | ansarieElement = |
| 912 | 912 | Jdec.oneOf |
| 913 | - [ Jdec.map IntegerArrayInAnsarieElement (Jdec.array Jdec.int) | |
| 913 | + [ Jdec.map IntegerArrayInAnsarieElement (Jdec.array Jdec.int ) | |
| 914 | 914 | , Jdec.null NullInAnsarieElement |
| 915 | 915 | , Jdec.map AnsarieClassInAnsarieElement ansarieClass |
| 916 | 916 | ] |
| @@ -973,7 +973,7 @@ encodeAnsarieClass x = | ||
| 973 | 973 | aphasia : Jdec.Decoder Aphasia |
| 974 | 974 | aphasia = |
| 975 | 975 | Jdec.oneOf |
| 976 | - [ Jdec.map IntegerArrayInAphasia (Jdec.array Jdec.int) | |
| 976 | + [ Jdec.map IntegerArrayInAphasia (Jdec.array Jdec.int ) | |
| 977 | 977 | , Jdec.map IntegerInAphasia Jdec.int |
| 978 | 978 | ] |
| 979 | 979 | |
| @@ -1011,7 +1011,7 @@ encodeBedesman x = case x of | ||
| 1011 | 1011 | belard : Jdec.Decoder Belard |
| 1012 | 1012 | belard = |
| 1013 | 1013 | Jdec.oneOf |
| 1014 | - [ Jdec.map IntegerArrayInBelard (Jdec.array Jdec.int) | |
| 1014 | + [ Jdec.map IntegerArrayInBelard (Jdec.array Jdec.int ) | |
| 1015 | 1015 | , Jdec.map DoubleInBelard Jdec.float |
| 1016 | 1016 | , Jdec.map RebeccaInBelard rebecca |
| 1017 | 1017 | ] |
| @@ -1025,7 +1025,7 @@ encodeBelard x = case x of | ||
| 1025 | 1025 | bocking : Jdec.Decoder Bocking |
| 1026 | 1026 | bocking = |
| 1027 | 1027 | Jdec.oneOf |
| 1028 | - [ Jdec.map IntegerArrayInBocking (Jdec.array Jdec.int) | |
| 1028 | + [ Jdec.map IntegerArrayInBocking (Jdec.array Jdec.int ) | |
| 1029 | 1029 | , Jdec.map BoolInBocking Jdec.bool |
| 1030 | 1030 | , Jdec.map IntegerMapInBocking (Jdec.dict Jdec.int) |
| 1031 | 1031 | ] |
| @@ -1039,7 +1039,7 @@ encodeBocking x = case x of | ||
| 1039 | 1039 | brawlingly : Jdec.Decoder Brawlingly |
| 1040 | 1040 | brawlingly = |
| 1041 | 1041 | Jdec.oneOf |
| 1042 | - [ Jdec.map NullArrayInBrawlingly (Jdec.array (Jdec.null ())) | |
| 1042 | + [ Jdec.map NullArrayInBrawlingly (Jdec.array (Jdec.null ()) ) | |
| 1043 | 1043 | , Jdec.map UnionMapInBrawlingly (Jdec.dict (Jdec.nullable Jdec.int)) |
| 1044 | 1044 | ] |
| 1045 | 1045 | |
| @@ -1051,7 +1051,7 @@ encodeBrawlingly x = case x of | ||
| 1051 | 1051 | brookie : Jdec.Decoder Brookie |
| 1052 | 1052 | brookie = |
| 1053 | 1053 | Jdec.oneOf |
| 1054 | - [ Jdec.map IntegerArrayInBrookie (Jdec.array Jdec.int) | |
| 1054 | + [ Jdec.map IntegerArrayInBrookie (Jdec.array Jdec.int ) | |
| 1055 | 1055 | , Jdec.map RebeccaInBrookie rebecca |
| 1056 | 1056 | ] |
| 1057 | 1057 | |
| @@ -1063,7 +1063,7 @@ encodeBrookie x = case x of | ||
| 1063 | 1063 | bumboatman : Jdec.Decoder Bumboatman |
| 1064 | 1064 | bumboatman = |
| 1065 | 1065 | Jdec.oneOf |
| 1066 | - [ Jdec.map NullArrayInBumboatman (Jdec.array (Jdec.null ())) | |
| 1066 | + [ Jdec.map NullArrayInBumboatman (Jdec.array (Jdec.null ()) ) | |
| 1067 | 1067 | , Jdec.null NullInBumboatman |
| 1068 | 1068 | , Jdec.map StringInBumboatman Jdec.string |
| 1069 | 1069 | ] |
| @@ -1077,7 +1077,7 @@ encodeBumboatman x = case x of | ||
| 1077 | 1077 | calaverite : Jdec.Decoder Calaverite |
| 1078 | 1078 | calaverite = |
| 1079 | 1079 | Jdec.oneOf |
| 1080 | - [ Jdec.map IntegerArrayInCalaverite (Jdec.array Jdec.int) | |
| 1080 | + [ Jdec.map IntegerArrayInCalaverite (Jdec.array Jdec.int ) | |
| 1081 | 1081 | , Jdec.map StringInCalaverite Jdec.string |
| 1082 | 1082 | ] |
| 1083 | 1083 | |
| @@ -1089,7 +1089,7 @@ encodeCalaverite x = case x of | ||
| 1089 | 1089 | catallactic : Jdec.Decoder Catallactic |
| 1090 | 1090 | catallactic = |
| 1091 | 1091 | Jdec.oneOf |
| 1092 | - [ Jdec.map NullArrayInCatallactic (Jdec.array (Jdec.null ())) | |
| 1092 | + [ Jdec.map NullArrayInCatallactic (Jdec.array (Jdec.null ()) ) | |
| 1093 | 1093 | , Jdec.map BoolInCatallactic Jdec.bool |
| 1094 | 1094 | , Jdec.map IntegerMapInCatallactic (Jdec.dict Jdec.int) |
| 1095 | 1095 | ] |
| @@ -1103,7 +1103,7 @@ encodeCatallactic x = case x of | ||
| 1103 | 1103 | cemental : Jdec.Decoder Cemental |
| 1104 | 1104 | cemental = |
| 1105 | 1105 | Jdec.oneOf |
| 1106 | - [ Jdec.map IntegerArrayInCemental (Jdec.array Jdec.int) | |
| 1106 | + [ Jdec.map IntegerArrayInCemental (Jdec.array Jdec.int ) | |
| 1107 | 1107 | , Jdec.map DoubleInCemental Jdec.float |
| 1108 | 1108 | , Jdec.map IntegerMapInCemental (Jdec.dict Jdec.int) |
| 1109 | 1109 | ] |
| @@ -1180,7 +1180,7 @@ encodeChytridiaceaeClass x = | ||
| 1180 | 1180 | discordiaElement : Jdec.Decoder DiscordiaElement |
| 1181 | 1181 | discordiaElement = |
| 1182 | 1182 | Jdec.oneOf |
| 1183 | - [ Jdec.map IntegerArrayInDiscordiaElement (Jdec.array Jdec.int) | |
| 1183 | + [ Jdec.map IntegerArrayInDiscordiaElement (Jdec.array Jdec.int ) | |
| 1184 | 1184 | , Jdec.map DiscordiaClassInDiscordiaElement discordiaClass |
| 1185 | 1185 | ] |
| 1186 | 1186 | |
| @@ -1277,7 +1277,7 @@ encodeEpinephelidae x = case x of | ||
| 1277 | 1277 | eupatorium : Jdec.Decoder Eupatorium |
| 1278 | 1278 | eupatorium = |
| 1279 | 1279 | Jdec.oneOf |
| 1280 | - [ Jdec.map NullArrayInEupatorium (Jdec.array (Jdec.null ())) | |
| 1280 | + [ Jdec.map NullArrayInEupatorium (Jdec.array (Jdec.null ()) ) | |
| 1281 | 1281 | , Jdec.map IntegerMapInEupatorium (Jdec.dict Jdec.int) |
| 1282 | 1282 | ] |
| 1283 | 1283 | |
| @@ -1289,7 +1289,7 @@ encodeEupatorium x = case x of | ||
| 1289 | 1289 | gryphosaurusElement : Jdec.Decoder GryphosaurusElement |
| 1290 | 1290 | gryphosaurusElement = |
| 1291 | 1291 | Jdec.oneOf |
| 1292 | - [ Jdec.map IntegerArrayInGryphosaurusElement (Jdec.array Jdec.int) | |
| 1292 | + [ Jdec.map IntegerArrayInGryphosaurusElement (Jdec.array Jdec.int ) | |
| 1293 | 1293 | , Jdec.map StringInGryphosaurusElement Jdec.string |
| 1294 | 1294 | , Jdec.map GryphosaurusClassInGryphosaurusElement gryphosaurusClass |
| 1295 | 1295 | ] |
| @@ -1435,7 +1435,7 @@ encodeLaviniaClass x = | ||
| 1435 | 1435 | oskarElement : Jdec.Decoder OskarElement |
| 1436 | 1436 | oskarElement = |
| 1437 | 1437 | Jdec.oneOf |
| 1438 | - [ Jdec.map IntegerArrayInOskarElement (Jdec.array Jdec.int) | |
| 1438 | + [ Jdec.map IntegerArrayInOskarElement (Jdec.array Jdec.int ) | |
| 1439 | 1439 | , Jdec.map OskarClassInOskarElement oskarClass |
| 1440 | 1440 | ] |
| 1441 | 1441 | |
| @@ -1510,7 +1510,7 @@ encodeRebeccaElement x = case x of | ||
| 1510 | 1510 | rhomboganoidei : Jdec.Decoder Rhomboganoidei |
| 1511 | 1511 | rhomboganoidei = |
| 1512 | 1512 | Jdec.oneOf |
| 1513 | - [ Jdec.map IntegerArrayInRhomboganoidei (Jdec.array Jdec.int) | |
| 1513 | + [ Jdec.map IntegerArrayInRhomboganoidei (Jdec.array Jdec.int ) | |
| 1514 | 1514 | , Jdec.map StringInRhomboganoidei Jdec.string |
| 1515 | 1515 | , Jdec.map RebeccaInRhomboganoidei rebecca |
| 1516 | 1516 | ] |
| @@ -1552,7 +1552,7 @@ encodeSchool x = case x of | ||
| 1552 | 1552 | shakespearolater : Jdec.Decoder Shakespearolater |
| 1553 | 1553 | shakespearolater = |
| 1554 | 1554 | Jdec.oneOf |
| 1555 | - [ Jdec.map IntegerArrayInShakespearolater (Jdec.array Jdec.int) | |
| 1555 | + [ Jdec.map IntegerArrayInShakespearolater (Jdec.array Jdec.int ) | |
| 1556 | 1556 | , Jdec.map StringInShakespearolater Jdec.string |
| 1557 | 1557 | , Jdec.map DoubleInShakespearolater Jdec.float |
| 1558 | 1558 | ] |
Melmdefault / QuickType.elm+64 −64
| @@ -518,50 +518,50 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 518 | 518 | quickType : Jdec.Decoder QuickType |
| 519 | 519 | quickType = |
| 520 | 520 | Jdec.succeed QuickType |
| 521 | - |> Jpipe.required "Abranchiata" (Jdec.list abranchiata) | |
| 522 | - |> Jpipe.required "academe" (Jdec.list academe) | |
| 523 | - |> Jpipe.required "acquirable" (Jdec.list acquirable) | |
| 524 | - |> Jpipe.required "aerometry" (Jdec.list aerometry) | |
| 525 | - |> Jpipe.required "alexin" (Jdec.list alexin) | |
| 526 | - |> Jpipe.required "alleviate" (Jdec.list alleviateElement) | |
| 527 | - |> Jpipe.required "amaas" (Jdec.list amaa) | |
| 528 | - |> Jpipe.required "ambassage" (Jdec.list ambassage) | |
| 529 | - |> Jpipe.required "amphithyron" (Jdec.list (Jdec.nullable amphithyron)) | |
| 530 | - |> Jpipe.required "Andriana" (Jdec.list (Jdec.nullable Jdec.string)) | |
| 531 | - |> Jpipe.required "ankee" (Jdec.list ankeeElement) | |
| 532 | - |> Jpipe.required "annihilator" (Jdec.list (Jdec.nullable (Jdec.dict (Jdec.nullable Jdec.int)))) | |
| 521 | + |> Jpipe.required "Abranchiata" (Jdec.list abranchiata ) | |
| 522 | + |> Jpipe.required "academe" (Jdec.list academe ) | |
| 523 | + |> Jpipe.required "acquirable" (Jdec.list acquirable ) | |
| 524 | + |> Jpipe.required "aerometry" (Jdec.list aerometry ) | |
| 525 | + |> Jpipe.required "alexin" (Jdec.list alexin ) | |
| 526 | + |> Jpipe.required "alleviate" (Jdec.list alleviateElement ) | |
| 527 | + |> Jpipe.required "amaas" (Jdec.list amaa ) | |
| 528 | + |> Jpipe.required "ambassage" (Jdec.list ambassage ) | |
| 529 | + |> Jpipe.required "amphithyron" (Jdec.list (Jdec.nullable amphithyron) ) | |
| 530 | + |> Jpipe.required "Andriana" (Jdec.list (Jdec.nullable Jdec.string) ) | |
| 531 | + |> Jpipe.required "ankee" (Jdec.list ankeeElement ) | |
| 532 | + |> Jpipe.required "annihilator" (Jdec.list (Jdec.nullable (Jdec.dict (Jdec.nullable Jdec.int))) ) | |
| 533 | 533 | |> Jpipe.required "annulose" (Jdec.null ()) |
| 534 | - |> Jpipe.required "Ansarie" (Jdec.list ansarieElement) | |
| 535 | - |> Jpipe.required "aphasia" (Jdec.list aphasia) | |
| 536 | - |> Jpipe.required "asprawl" (Jdec.list asprawl) | |
| 537 | - |> Jpipe.required "attractive" (Jdec.list (Jdec.nullable Jdec.bool)) | |
| 534 | + |> Jpipe.required "Ansarie" (Jdec.list ansarieElement ) | |
| 535 | + |> Jpipe.required "aphasia" (Jdec.list aphasia ) | |
| 536 | + |> Jpipe.required "asprawl" (Jdec.list asprawl ) | |
| 537 | + |> Jpipe.required "attractive" (Jdec.list (Jdec.nullable Jdec.bool) ) | |
| 538 | 538 | |> Jpipe.required "barksome" (Jdec.dict Jdec.int) |
| 539 | - |> Jpipe.required "bedesman" (Jdec.list bedesman) | |
| 540 | - |> Jpipe.required "belard" (Jdec.list belard) | |
| 541 | - |> Jpipe.required "bocking" (Jdec.list bocking) | |
| 542 | - |> Jpipe.required "brawlingly" (Jdec.list brawlingly) | |
| 543 | - |> Jpipe.required "brookie" (Jdec.list brookie) | |
| 544 | - |> Jpipe.required "bumboatman" (Jdec.list bumboatman) | |
| 545 | - |> Jpipe.required "bystreet" (Jdec.list (Jdec.null ())) | |
| 546 | - |> Jpipe.required "calaverite" (Jdec.list calaverite) | |
| 547 | - |> Jpipe.required "catallactic" (Jdec.list catallactic) | |
| 548 | - |> Jpipe.required "cemental" (Jdec.list cemental) | |
| 549 | - |> Jpipe.required "Chytridiaceae" (Jdec.list chytridiaceaeElement) | |
| 550 | - |> Jpipe.required "Discordia" (Jdec.list discordiaElement) | |
| 551 | - |> Jpipe.required "Endomyces" (Jdec.list endomyce) | |
| 552 | - |> Jpipe.required "Epinephelidae" (Jdec.list epinephelidae) | |
| 553 | - |> Jpipe.required "Eupatorium" (Jdec.list eupatorium) | |
| 554 | - |> Jpipe.required "Gryphosaurus" (Jdec.list gryphosaurusElement) | |
| 555 | - |> Jpipe.required "Koryak" (Jdec.list koryak) | |
| 556 | - |> Jpipe.required "Lavinia" (Jdec.list laviniaElement) | |
| 557 | - |> Jpipe.required "Oskar" (Jdec.list oskarElement) | |
| 558 | - |> Jpipe.required "Rebecca" (Jdec.list rebeccaElement) | |
| 559 | - |> Jpipe.required "Rhomboganoidei" (Jdec.list rhomboganoidei) | |
| 539 | + |> Jpipe.required "bedesman" (Jdec.list bedesman ) | |
| 540 | + |> Jpipe.required "belard" (Jdec.list belard ) | |
| 541 | + |> Jpipe.required "bocking" (Jdec.list bocking ) | |
| 542 | + |> Jpipe.required "brawlingly" (Jdec.list brawlingly ) | |
| 543 | + |> Jpipe.required "brookie" (Jdec.list brookie ) | |
| 544 | + |> Jpipe.required "bumboatman" (Jdec.list bumboatman ) | |
| 545 | + |> Jpipe.required "bystreet" (Jdec.list (Jdec.null ()) ) | |
| 546 | + |> Jpipe.required "calaverite" (Jdec.list calaverite ) | |
| 547 | + |> Jpipe.required "catallactic" (Jdec.list catallactic ) | |
| 548 | + |> Jpipe.required "cemental" (Jdec.list cemental ) | |
| 549 | + |> Jpipe.required "Chytridiaceae" (Jdec.list chytridiaceaeElement ) | |
| 550 | + |> Jpipe.required "Discordia" (Jdec.list discordiaElement ) | |
| 551 | + |> Jpipe.required "Endomyces" (Jdec.list endomyce ) | |
| 552 | + |> Jpipe.required "Epinephelidae" (Jdec.list epinephelidae ) | |
| 553 | + |> Jpipe.required "Eupatorium" (Jdec.list eupatorium ) | |
| 554 | + |> Jpipe.required "Gryphosaurus" (Jdec.list gryphosaurusElement ) | |
| 555 | + |> Jpipe.required "Koryak" (Jdec.list koryak ) | |
| 556 | + |> Jpipe.required "Lavinia" (Jdec.list laviniaElement ) | |
| 557 | + |> Jpipe.required "Oskar" (Jdec.list oskarElement ) | |
| 558 | + |> Jpipe.required "Rebecca" (Jdec.list rebeccaElement ) | |
| 559 | + |> Jpipe.required "Rhomboganoidei" (Jdec.list rhomboganoidei ) | |
| 560 | 560 | |> Jpipe.required "Rigsmal" Jdec.bool |
| 561 | - |> Jpipe.required "Ruellia" (Jdec.list ruellia) | |
| 562 | - |> Jpipe.required "School" (Jdec.list school) | |
| 563 | - |> Jpipe.required "Shakespearolater" (Jdec.list shakespearolater) | |
| 564 | - |> Jpipe.required "Svan" (Jdec.list Jdec.float) | |
| 561 | + |> Jpipe.required "Ruellia" (Jdec.list ruellia ) | |
| 562 | + |> Jpipe.required "School" (Jdec.list school ) | |
| 563 | + |> Jpipe.required "Shakespearolater" (Jdec.list shakespearolater ) | |
| 564 | + |> Jpipe.required "Svan" (Jdec.list Jdec.float ) | |
| 565 | 565 | |> Jpipe.required "Wayao" (Jdec.dict Jdec.float) |
| 566 | 566 | |
| 567 | 567 | encodeQuickType : QuickType -> Jenc.Value |
| @@ -617,7 +617,7 @@ encodeQuickType x = | ||
| 617 | 617 | abranchiata : Jdec.Decoder Abranchiata |
| 618 | 618 | abranchiata = |
| 619 | 619 | Jdec.oneOf |
| 620 | - [ Jdec.map IntegerArrayInAbranchiata (Jdec.list Jdec.int) | |
| 620 | + [ Jdec.map IntegerArrayInAbranchiata (Jdec.list Jdec.int ) | |
| 621 | 621 | , Jdec.map IntegerInAbranchiata Jdec.int |
| 622 | 622 | , Jdec.null NullInAbranchiata |
| 623 | 623 | ] |
| @@ -631,7 +631,7 @@ encodeAbranchiata x = case x of | ||
| 631 | 631 | academe : Jdec.Decoder Academe |
| 632 | 632 | academe = |
| 633 | 633 | Jdec.oneOf |
| 634 | - [ Jdec.map IntegerArrayInAcademe (Jdec.list Jdec.int) | |
| 634 | + [ Jdec.map IntegerArrayInAcademe (Jdec.list Jdec.int ) | |
| 635 | 635 | , Jdec.map IntegerInAcademe Jdec.int |
| 636 | 636 | , Jdec.map IntegerMapInAcademe (Jdec.dict Jdec.int) |
| 637 | 637 | ] |
| @@ -645,7 +645,7 @@ encodeAcademe x = case x of | ||
| 645 | 645 | acquirable : Jdec.Decoder Acquirable |
| 646 | 646 | acquirable = |
| 647 | 647 | Jdec.oneOf |
| 648 | - [ Jdec.map UnionArrayInAcquirable (Jdec.list (Jdec.nullable Jdec.int)) | |
| 648 | + [ Jdec.map UnionArrayInAcquirable (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 649 | 649 | , Jdec.map IntegerMapInAcquirable (Jdec.dict Jdec.int) |
| 650 | 650 | ] |
| 651 | 651 | |
| @@ -669,7 +669,7 @@ encodeAerometry x = case x of | ||
| 669 | 669 | alexin : Jdec.Decoder Alexin |
| 670 | 670 | alexin = |
| 671 | 671 | Jdec.oneOf |
| 672 | - [ Jdec.map IntegerArrayInAlexin (Jdec.list Jdec.int) | |
| 672 | + [ Jdec.map IntegerArrayInAlexin (Jdec.list Jdec.int ) | |
| 673 | 673 | , Jdec.map BoolInAlexin Jdec.bool |
| 674 | 674 | ] |
| 675 | 675 | |
| @@ -681,7 +681,7 @@ encodeAlexin x = case x of | ||
| 681 | 681 | alleviateElement : Jdec.Decoder AlleviateElement |
| 682 | 682 | alleviateElement = |
| 683 | 683 | Jdec.oneOf |
| 684 | - [ Jdec.map UnionArrayInAlleviateElement (Jdec.list (Jdec.nullable Jdec.int)) | |
| 684 | + [ Jdec.map UnionArrayInAlleviateElement (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 685 | 685 | , Jdec.map AlleviateClassInAlleviateElement alleviateClass |
| 686 | 686 | ] |
| 687 | 687 | |
| @@ -775,7 +775,7 @@ encodeRebecca x = | ||
| 775 | 775 | ambassage : Jdec.Decoder Ambassage |
| 776 | 776 | ambassage = |
| 777 | 777 | Jdec.oneOf |
| 778 | - [ Jdec.map NullArrayInAmbassage (Jdec.list (Jdec.null ())) | |
| 778 | + [ Jdec.map NullArrayInAmbassage (Jdec.list (Jdec.null ()) ) | |
| 779 | 779 | , Jdec.map StringInAmbassage Jdec.string |
| 780 | 780 | ] |
| 781 | 781 | |
| @@ -846,7 +846,7 @@ encodeAmphithyron x = | ||
| 846 | 846 | ankeeElement : Jdec.Decoder AnkeeElement |
| 847 | 847 | ankeeElement = |
| 848 | 848 | Jdec.oneOf |
| 849 | - [ Jdec.map IntegerArrayInAnkeeElement (Jdec.list Jdec.int) | |
| 849 | + [ Jdec.map IntegerArrayInAnkeeElement (Jdec.list Jdec.int ) | |
| 850 | 850 | , Jdec.map IntegerInAnkeeElement Jdec.int |
| 851 | 851 | , Jdec.map AnkeeClassInAnkeeElement ankeeClass |
| 852 | 852 | ] |
| @@ -909,7 +909,7 @@ encodeAnkeeClass x = | ||
| 909 | 909 | ansarieElement : Jdec.Decoder AnsarieElement |
| 910 | 910 | ansarieElement = |
| 911 | 911 | Jdec.oneOf |
| 912 | - [ Jdec.map IntegerArrayInAnsarieElement (Jdec.list Jdec.int) | |
| 912 | + [ Jdec.map IntegerArrayInAnsarieElement (Jdec.list Jdec.int ) | |
| 913 | 913 | , Jdec.null NullInAnsarieElement |
| 914 | 914 | , Jdec.map AnsarieClassInAnsarieElement ansarieClass |
| 915 | 915 | ] |
| @@ -972,7 +972,7 @@ encodeAnsarieClass x = | ||
| 972 | 972 | aphasia : Jdec.Decoder Aphasia |
| 973 | 973 | aphasia = |
| 974 | 974 | Jdec.oneOf |
| 975 | - [ Jdec.map IntegerArrayInAphasia (Jdec.list Jdec.int) | |
| 975 | + [ Jdec.map IntegerArrayInAphasia (Jdec.list Jdec.int ) | |
| 976 | 976 | , Jdec.map IntegerInAphasia Jdec.int |
| 977 | 977 | ] |
| 978 | 978 | |
| @@ -1010,7 +1010,7 @@ encodeBedesman x = case x of | ||
| 1010 | 1010 | belard : Jdec.Decoder Belard |
| 1011 | 1011 | belard = |
| 1012 | 1012 | Jdec.oneOf |
| 1013 | - [ Jdec.map IntegerArrayInBelard (Jdec.list Jdec.int) | |
| 1013 | + [ Jdec.map IntegerArrayInBelard (Jdec.list Jdec.int ) | |
| 1014 | 1014 | , Jdec.map DoubleInBelard Jdec.float |
| 1015 | 1015 | , Jdec.map RebeccaInBelard rebecca |
| 1016 | 1016 | ] |
| @@ -1024,7 +1024,7 @@ encodeBelard x = case x of | ||
| 1024 | 1024 | bocking : Jdec.Decoder Bocking |
| 1025 | 1025 | bocking = |
| 1026 | 1026 | Jdec.oneOf |
| 1027 | - [ Jdec.map IntegerArrayInBocking (Jdec.list Jdec.int) | |
| 1027 | + [ Jdec.map IntegerArrayInBocking (Jdec.list Jdec.int ) | |
| 1028 | 1028 | , Jdec.map BoolInBocking Jdec.bool |
| 1029 | 1029 | , Jdec.map IntegerMapInBocking (Jdec.dict Jdec.int) |
| 1030 | 1030 | ] |
| @@ -1038,7 +1038,7 @@ encodeBocking x = case x of | ||
| 1038 | 1038 | brawlingly : Jdec.Decoder Brawlingly |
| 1039 | 1039 | brawlingly = |
| 1040 | 1040 | Jdec.oneOf |
| 1041 | - [ Jdec.map NullArrayInBrawlingly (Jdec.list (Jdec.null ())) | |
| 1041 | + [ Jdec.map NullArrayInBrawlingly (Jdec.list (Jdec.null ()) ) | |
| 1042 | 1042 | , Jdec.map UnionMapInBrawlingly (Jdec.dict (Jdec.nullable Jdec.int)) |
| 1043 | 1043 | ] |
| 1044 | 1044 | |
| @@ -1050,7 +1050,7 @@ encodeBrawlingly x = case x of | ||
| 1050 | 1050 | brookie : Jdec.Decoder Brookie |
| 1051 | 1051 | brookie = |
| 1052 | 1052 | Jdec.oneOf |
| 1053 | - [ Jdec.map IntegerArrayInBrookie (Jdec.list Jdec.int) | |
| 1053 | + [ Jdec.map IntegerArrayInBrookie (Jdec.list Jdec.int ) | |
| 1054 | 1054 | , Jdec.map RebeccaInBrookie rebecca |
| 1055 | 1055 | ] |
| 1056 | 1056 | |
| @@ -1062,7 +1062,7 @@ encodeBrookie x = case x of | ||
| 1062 | 1062 | bumboatman : Jdec.Decoder Bumboatman |
| 1063 | 1063 | bumboatman = |
| 1064 | 1064 | Jdec.oneOf |
| 1065 | - [ Jdec.map NullArrayInBumboatman (Jdec.list (Jdec.null ())) | |
| 1065 | + [ Jdec.map NullArrayInBumboatman (Jdec.list (Jdec.null ()) ) | |
| 1066 | 1066 | , Jdec.null NullInBumboatman |
| 1067 | 1067 | , Jdec.map StringInBumboatman Jdec.string |
| 1068 | 1068 | ] |
| @@ -1076,7 +1076,7 @@ encodeBumboatman x = case x of | ||
| 1076 | 1076 | calaverite : Jdec.Decoder Calaverite |
| 1077 | 1077 | calaverite = |
| 1078 | 1078 | Jdec.oneOf |
| 1079 | - [ Jdec.map IntegerArrayInCalaverite (Jdec.list Jdec.int) | |
| 1079 | + [ Jdec.map IntegerArrayInCalaverite (Jdec.list Jdec.int ) | |
| 1080 | 1080 | , Jdec.map StringInCalaverite Jdec.string |
| 1081 | 1081 | ] |
| 1082 | 1082 | |
| @@ -1088,7 +1088,7 @@ encodeCalaverite x = case x of | ||
| 1088 | 1088 | catallactic : Jdec.Decoder Catallactic |
| 1089 | 1089 | catallactic = |
| 1090 | 1090 | Jdec.oneOf |
| 1091 | - [ Jdec.map NullArrayInCatallactic (Jdec.list (Jdec.null ())) | |
| 1091 | + [ Jdec.map NullArrayInCatallactic (Jdec.list (Jdec.null ()) ) | |
| 1092 | 1092 | , Jdec.map BoolInCatallactic Jdec.bool |
| 1093 | 1093 | , Jdec.map IntegerMapInCatallactic (Jdec.dict Jdec.int) |
| 1094 | 1094 | ] |
| @@ -1102,7 +1102,7 @@ encodeCatallactic x = case x of | ||
| 1102 | 1102 | cemental : Jdec.Decoder Cemental |
| 1103 | 1103 | cemental = |
| 1104 | 1104 | Jdec.oneOf |
| 1105 | - [ Jdec.map IntegerArrayInCemental (Jdec.list Jdec.int) | |
| 1105 | + [ Jdec.map IntegerArrayInCemental (Jdec.list Jdec.int ) | |
| 1106 | 1106 | , Jdec.map DoubleInCemental Jdec.float |
| 1107 | 1107 | , Jdec.map IntegerMapInCemental (Jdec.dict Jdec.int) |
| 1108 | 1108 | ] |
| @@ -1179,7 +1179,7 @@ encodeChytridiaceaeClass x = | ||
| 1179 | 1179 | discordiaElement : Jdec.Decoder DiscordiaElement |
| 1180 | 1180 | discordiaElement = |
| 1181 | 1181 | Jdec.oneOf |
| 1182 | - [ Jdec.map IntegerArrayInDiscordiaElement (Jdec.list Jdec.int) | |
| 1182 | + [ Jdec.map IntegerArrayInDiscordiaElement (Jdec.list Jdec.int ) | |
| 1183 | 1183 | , Jdec.map DiscordiaClassInDiscordiaElement discordiaClass |
| 1184 | 1184 | ] |
| 1185 | 1185 | |
| @@ -1276,7 +1276,7 @@ encodeEpinephelidae x = case x of | ||
| 1276 | 1276 | eupatorium : Jdec.Decoder Eupatorium |
| 1277 | 1277 | eupatorium = |
| 1278 | 1278 | Jdec.oneOf |
| 1279 | - [ Jdec.map NullArrayInEupatorium (Jdec.list (Jdec.null ())) | |
| 1279 | + [ Jdec.map NullArrayInEupatorium (Jdec.list (Jdec.null ()) ) | |
| 1280 | 1280 | , Jdec.map IntegerMapInEupatorium (Jdec.dict Jdec.int) |
| 1281 | 1281 | ] |
| 1282 | 1282 | |
| @@ -1288,7 +1288,7 @@ encodeEupatorium x = case x of | ||
| 1288 | 1288 | gryphosaurusElement : Jdec.Decoder GryphosaurusElement |
| 1289 | 1289 | gryphosaurusElement = |
| 1290 | 1290 | Jdec.oneOf |
| 1291 | - [ Jdec.map IntegerArrayInGryphosaurusElement (Jdec.list Jdec.int) | |
| 1291 | + [ Jdec.map IntegerArrayInGryphosaurusElement (Jdec.list Jdec.int ) | |
| 1292 | 1292 | , Jdec.map StringInGryphosaurusElement Jdec.string |
| 1293 | 1293 | , Jdec.map GryphosaurusClassInGryphosaurusElement gryphosaurusClass |
| 1294 | 1294 | ] |
| @@ -1434,7 +1434,7 @@ encodeLaviniaClass x = | ||
| 1434 | 1434 | oskarElement : Jdec.Decoder OskarElement |
| 1435 | 1435 | oskarElement = |
| 1436 | 1436 | Jdec.oneOf |
| 1437 | - [ Jdec.map IntegerArrayInOskarElement (Jdec.list Jdec.int) | |
| 1437 | + [ Jdec.map IntegerArrayInOskarElement (Jdec.list Jdec.int ) | |
| 1438 | 1438 | , Jdec.map OskarClassInOskarElement oskarClass |
| 1439 | 1439 | ] |
| 1440 | 1440 | |
| @@ -1509,7 +1509,7 @@ encodeRebeccaElement x = case x of | ||
| 1509 | 1509 | rhomboganoidei : Jdec.Decoder Rhomboganoidei |
| 1510 | 1510 | rhomboganoidei = |
| 1511 | 1511 | Jdec.oneOf |
| 1512 | - [ Jdec.map IntegerArrayInRhomboganoidei (Jdec.list Jdec.int) | |
| 1512 | + [ Jdec.map IntegerArrayInRhomboganoidei (Jdec.list Jdec.int ) | |
| 1513 | 1513 | , Jdec.map StringInRhomboganoidei Jdec.string |
| 1514 | 1514 | , Jdec.map RebeccaInRhomboganoidei rebecca |
| 1515 | 1515 | ] |
| @@ -1551,7 +1551,7 @@ encodeSchool x = case x of | ||
| 1551 | 1551 | shakespearolater : Jdec.Decoder Shakespearolater |
| 1552 | 1552 | shakespearolater = |
| 1553 | 1553 | Jdec.oneOf |
| 1554 | - [ Jdec.map IntegerArrayInShakespearolater (Jdec.list Jdec.int) | |
| 1554 | + [ Jdec.map IntegerArrayInShakespearolater (Jdec.list Jdec.int ) | |
| 1555 | 1555 | , Jdec.map StringInShakespearolater Jdec.string |
| 1556 | 1556 | , Jdec.map DoubleInShakespearolater Jdec.float |
| 1557 | 1557 | ] |
Test case
2 generated files · +120 −120test/inputs/json/priority/combinations3.json
Melmarray-type-array--eed288b23e27 / QuickType.elm+60 −60
| @@ -628,48 +628,48 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 628 | 628 | quickType : Jdec.Decoder QuickType |
| 629 | 629 | quickType = |
| 630 | 630 | Jdec.succeed QuickType |
| 631 | - |> Jpipe.required "juror" (Jdec.array jurorElement) | |
| 632 | - |> Jpipe.required "kongoni" (Jdec.array kongoni) | |
| 633 | - |> Jpipe.required "ladronism" (Jdec.array ladronismElement) | |
| 634 | - |> Jpipe.required "landlubberly" (Jdec.array landlubberlyElement) | |
| 635 | - |> Jpipe.required "listener" (Jdec.array listener) | |
| 636 | - |> Jpipe.required "lupus" (Jdec.array lupusElement) | |
| 637 | - |> Jpipe.required "maslin" (Jdec.array maslin) | |
| 638 | - |> Jpipe.required "monazite" (Jdec.array monaziteElement) | |
| 639 | - |> Jpipe.required "monoliteral" (Jdec.array monoliteral) | |
| 640 | - |> Jpipe.required "monotheistically" (Jdec.array monotheisticallyElement) | |
| 641 | - |> Jpipe.required "montage" (Jdec.array montage) | |
| 642 | - |> Jpipe.required "moralness" (Jdec.array moralness) | |
| 643 | - |> Jpipe.required "mowra" (Jdec.array (Jdec.nullable monaziteClass)) | |
| 644 | - |> Jpipe.required "mulishly" (Jdec.array mulishly) | |
| 645 | - |> Jpipe.required "myoscope" (Jdec.array myoscope) | |
| 646 | - |> Jpipe.required "nach" (Jdec.array (Jdec.nullable (Jdec.array (Jdec.nullable Jdec.int)))) | |
| 647 | - |> Jpipe.required "neuromastic" (Jdec.array neuromastic) | |
| 648 | - |> Jpipe.required "noncontributing" (Jdec.array noncontributing) | |
| 649 | - |> Jpipe.required "nonnervous" (Jdec.array nonnervous) | |
| 650 | - |> Jpipe.required "nonvaluation" (Jdec.array nonvaluation) | |
| 651 | - |> Jpipe.required "occupationalist" (Jdec.array occupationalistElement) | |
| 652 | - |> Jpipe.required "outrival" (Jdec.array outrivalElement) | |
| 653 | - |> Jpipe.required "paleographically" (Jdec.array paleographically) | |
| 654 | - |> Jpipe.required "pamphletwise" (Jdec.array pamphletwise) | |
| 655 | - |> Jpipe.required "pediatrics" (Jdec.array pediatric) | |
| 656 | - |> Jpipe.required "perceptive" (Jdec.array Jdec.bool) | |
| 657 | - |> Jpipe.required "piaculum" (Jdec.array piaculumElement) | |
| 658 | - |> Jpipe.required "piccadilly" (Jdec.array piccadilly) | |
| 659 | - |> Jpipe.required "piffler" (Jdec.array piffler) | |
| 660 | - |> Jpipe.required "pithful" (Jdec.array pithful) | |
| 661 | - |> Jpipe.required "placuntitis" (Jdec.array placuntiti) | |
| 662 | - |> Jpipe.required "plectopterous" (Jdec.array plectopterous) | |
| 663 | - |> Jpipe.required "pneumocele" (Jdec.array (Jdec.nullable pneumocele)) | |
| 664 | - |> Jpipe.required "poliorcetic" (Jdec.array poliorcetic) | |
| 665 | - |> Jpipe.required "poormaster" (Jdec.array poormaster) | |
| 666 | - |> Jpipe.required "potwhisky" (Jdec.array potwhiskyElement) | |
| 667 | - |> Jpipe.required "practicalizer" (Jdec.array practicalizer) | |
| 668 | - |> Jpipe.required "prefreshman" (Jdec.array prefreshmanElement) | |
| 669 | - |> Jpipe.required "prehensility" (Jdec.array prehensility) | |
| 670 | - |> Jpipe.required "prevoidance" (Jdec.array prevoidance) | |
| 671 | - |> Jpipe.required "probant" (Jdec.array (Jdec.dict (Jdec.nullable Jdec.int))) | |
| 672 | - |> Jpipe.required "protext" (Jdec.array protext) | |
| 631 | + |> Jpipe.required "juror" (Jdec.array jurorElement ) | |
| 632 | + |> Jpipe.required "kongoni" (Jdec.array kongoni ) | |
| 633 | + |> Jpipe.required "ladronism" (Jdec.array ladronismElement ) | |
| 634 | + |> Jpipe.required "landlubberly" (Jdec.array landlubberlyElement ) | |
| 635 | + |> Jpipe.required "listener" (Jdec.array listener ) | |
| 636 | + |> Jpipe.required "lupus" (Jdec.array lupusElement ) | |
| 637 | + |> Jpipe.required "maslin" (Jdec.array maslin ) | |
| 638 | + |> Jpipe.required "monazite" (Jdec.array monaziteElement ) | |
| 639 | + |> Jpipe.required "monoliteral" (Jdec.array monoliteral ) | |
| 640 | + |> Jpipe.required "monotheistically" (Jdec.array monotheisticallyElement ) | |
| 641 | + |> Jpipe.required "montage" (Jdec.array montage ) | |
| 642 | + |> Jpipe.required "moralness" (Jdec.array moralness ) | |
| 643 | + |> Jpipe.required "mowra" (Jdec.array (Jdec.nullable monaziteClass) ) | |
| 644 | + |> Jpipe.required "mulishly" (Jdec.array mulishly ) | |
| 645 | + |> Jpipe.required "myoscope" (Jdec.array myoscope ) | |
| 646 | + |> Jpipe.required "nach" (Jdec.array (Jdec.nullable (Jdec.array (Jdec.nullable Jdec.int) )) ) | |
| 647 | + |> Jpipe.required "neuromastic" (Jdec.array neuromastic ) | |
| 648 | + |> Jpipe.required "noncontributing" (Jdec.array noncontributing ) | |
| 649 | + |> Jpipe.required "nonnervous" (Jdec.array nonnervous ) | |
| 650 | + |> Jpipe.required "nonvaluation" (Jdec.array nonvaluation ) | |
| 651 | + |> Jpipe.required "occupationalist" (Jdec.array occupationalistElement ) | |
| 652 | + |> Jpipe.required "outrival" (Jdec.array outrivalElement ) | |
| 653 | + |> Jpipe.required "paleographically" (Jdec.array paleographically ) | |
| 654 | + |> Jpipe.required "pamphletwise" (Jdec.array pamphletwise ) | |
| 655 | + |> Jpipe.required "pediatrics" (Jdec.array pediatric ) | |
| 656 | + |> Jpipe.required "perceptive" (Jdec.array Jdec.bool ) | |
| 657 | + |> Jpipe.required "piaculum" (Jdec.array piaculumElement ) | |
| 658 | + |> Jpipe.required "piccadilly" (Jdec.array piccadilly ) | |
| 659 | + |> Jpipe.required "piffler" (Jdec.array piffler ) | |
| 660 | + |> Jpipe.required "pithful" (Jdec.array pithful ) | |
| 661 | + |> Jpipe.required "placuntitis" (Jdec.array placuntiti ) | |
| 662 | + |> Jpipe.required "plectopterous" (Jdec.array plectopterous ) | |
| 663 | + |> Jpipe.required "pneumocele" (Jdec.array (Jdec.nullable pneumocele) ) | |
| 664 | + |> Jpipe.required "poliorcetic" (Jdec.array poliorcetic ) | |
| 665 | + |> Jpipe.required "poormaster" (Jdec.array poormaster ) | |
| 666 | + |> Jpipe.required "potwhisky" (Jdec.array potwhiskyElement ) | |
| 667 | + |> Jpipe.required "practicalizer" (Jdec.array practicalizer ) | |
| 668 | + |> Jpipe.required "prefreshman" (Jdec.array prefreshmanElement ) | |
| 669 | + |> Jpipe.required "prehensility" (Jdec.array prehensility ) | |
| 670 | + |> Jpipe.required "prevoidance" (Jdec.array prevoidance ) | |
| 671 | + |> Jpipe.required "probant" (Jdec.array (Jdec.dict (Jdec.nullable Jdec.int)) ) | |
| 672 | + |> Jpipe.required "protext" (Jdec.array protext ) | |
| 673 | 673 | |
| 674 | 674 | encodeQuickType : QuickType -> Jenc.Value |
| 675 | 675 | encodeQuickType x = |
| @@ -782,7 +782,7 @@ encodeJurorClass x = | ||
| 782 | 782 | kongoni : Jdec.Decoder Kongoni |
| 783 | 783 | kongoni = |
| 784 | 784 | Jdec.oneOf |
| 785 | - [ Jdec.map IntegerArrayInKongoni (Jdec.array Jdec.int) | |
| 785 | + [ Jdec.map IntegerArrayInKongoni (Jdec.array Jdec.int ) | |
| 786 | 786 | , Jdec.map IntegerMapInKongoni (Jdec.dict Jdec.int) |
| 787 | 787 | ] |
| 788 | 788 | |
| @@ -920,7 +920,7 @@ encodeLandlubberlyClass x = | ||
| 920 | 920 | listener : Jdec.Decoder Listener |
| 921 | 921 | listener = |
| 922 | 922 | Jdec.oneOf |
| 923 | - [ Jdec.map NullArrayInListener (Jdec.array (Jdec.null ())) | |
| 923 | + [ Jdec.map NullArrayInListener (Jdec.array (Jdec.null ()) ) | |
| 924 | 924 | , Jdec.map IntegerInListener Jdec.int |
| 925 | 925 | ] |
| 926 | 926 | |
| @@ -1133,7 +1133,7 @@ encodeMonaziteClass x = | ||
| 1133 | 1133 | monoliteral : Jdec.Decoder Monoliteral |
| 1134 | 1134 | monoliteral = |
| 1135 | 1135 | Jdec.oneOf |
| 1136 | - [ Jdec.map NullArrayInMonoliteral (Jdec.array (Jdec.null ())) | |
| 1136 | + [ Jdec.map NullArrayInMonoliteral (Jdec.array (Jdec.null ()) ) | |
| 1137 | 1137 | , Jdec.map BoolInMonoliteral Jdec.bool |
| 1138 | 1138 | ] |
| 1139 | 1139 | |
| @@ -1145,7 +1145,7 @@ encodeMonoliteral x = case x of | ||
| 1145 | 1145 | monotheisticallyElement : Jdec.Decoder MonotheisticallyElement |
| 1146 | 1146 | monotheisticallyElement = |
| 1147 | 1147 | Jdec.oneOf |
| 1148 | - [ Jdec.map NullArrayInMonotheisticallyElement (Jdec.array (Jdec.null ())) | |
| 1148 | + [ Jdec.map NullArrayInMonotheisticallyElement (Jdec.array (Jdec.null ()) ) | |
| 1149 | 1149 | , Jdec.map MonotheisticallyClassInMonotheisticallyElement monotheisticallyClass |
| 1150 | 1150 | ] |
| 1151 | 1151 | |
| @@ -1216,7 +1216,7 @@ encodeMonotheisticallyClass x = | ||
| 1216 | 1216 | montage : Jdec.Decoder Montage |
| 1217 | 1217 | montage = |
| 1218 | 1218 | Jdec.oneOf |
| 1219 | - [ Jdec.map NullArrayInMontage (Jdec.array (Jdec.null ())) | |
| 1219 | + [ Jdec.map NullArrayInMontage (Jdec.array (Jdec.null ()) ) | |
| 1220 | 1220 | , Jdec.map StringInMontage Jdec.string |
| 1221 | 1221 | , Jdec.map DoubleInMontage Jdec.float |
| 1222 | 1222 | ] |
| @@ -1230,7 +1230,7 @@ encodeMontage x = case x of | ||
| 1230 | 1230 | moralness : Jdec.Decoder Moralness |
| 1231 | 1231 | moralness = |
| 1232 | 1232 | Jdec.oneOf |
| 1233 | - [ Jdec.map NullArrayInMoralness (Jdec.array (Jdec.null ())) | |
| 1233 | + [ Jdec.map NullArrayInMoralness (Jdec.array (Jdec.null ()) ) | |
| 1234 | 1234 | , Jdec.null NullInMoralness |
| 1235 | 1235 | , Jdec.map DoubleInMoralness Jdec.float |
| 1236 | 1236 | ] |
| @@ -1244,7 +1244,7 @@ encodeMoralness x = case x of | ||
| 1244 | 1244 | mulishly : Jdec.Decoder Mulishly |
| 1245 | 1245 | mulishly = |
| 1246 | 1246 | Jdec.oneOf |
| 1247 | - [ Jdec.map IntegerArrayInMulishly (Jdec.array Jdec.int) | |
| 1247 | + [ Jdec.map IntegerArrayInMulishly (Jdec.array Jdec.int ) | |
| 1248 | 1248 | , Jdec.null NullInMulishly |
| 1249 | 1249 | , Jdec.map DoubleInMulishly Jdec.float |
| 1250 | 1250 | ] |
| @@ -1258,7 +1258,7 @@ encodeMulishly x = case x of | ||
| 1258 | 1258 | myoscope : Jdec.Decoder Myoscope |
| 1259 | 1259 | myoscope = |
| 1260 | 1260 | Jdec.oneOf |
| 1261 | - [ Jdec.map NullArrayInMyoscope (Jdec.array (Jdec.null ())) | |
| 1261 | + [ Jdec.map NullArrayInMyoscope (Jdec.array (Jdec.null ()) ) | |
| 1262 | 1262 | , Jdec.map BoolInMyoscope Jdec.bool |
| 1263 | 1263 | , Jdec.map IntegerInMyoscope Jdec.int |
| 1264 | 1264 | ] |
| @@ -1272,7 +1272,7 @@ encodeMyoscope x = case x of | ||
| 1272 | 1272 | neuromastic : Jdec.Decoder Neuromastic |
| 1273 | 1273 | neuromastic = |
| 1274 | 1274 | Jdec.oneOf |
| 1275 | - [ Jdec.map NullArrayInNeuromastic (Jdec.array (Jdec.null ())) | |
| 1275 | + [ Jdec.map NullArrayInNeuromastic (Jdec.array (Jdec.null ()) ) | |
| 1276 | 1276 | , Jdec.map DoubleInNeuromastic Jdec.float |
| 1277 | 1277 | ] |
| 1278 | 1278 | |
| @@ -1315,7 +1315,7 @@ encodeNonnervous x = case x of | ||
| 1315 | 1315 | nonvaluation : Jdec.Decoder Nonvaluation |
| 1316 | 1316 | nonvaluation = |
| 1317 | 1317 | Jdec.oneOf |
| 1318 | - [ Jdec.map NullArrayInNonvaluation (Jdec.array (Jdec.null ())) | |
| 1318 | + [ Jdec.map NullArrayInNonvaluation (Jdec.array (Jdec.null ()) ) | |
| 1319 | 1319 | , Jdec.map BoolInNonvaluation Jdec.bool |
| 1320 | 1320 | , Jdec.map DoubleInNonvaluation Jdec.float |
| 1321 | 1321 | ] |
| @@ -1329,7 +1329,7 @@ encodeNonvaluation x = case x of | ||
| 1329 | 1329 | occupationalistElement : Jdec.Decoder OccupationalistElement |
| 1330 | 1330 | occupationalistElement = |
| 1331 | 1331 | Jdec.oneOf |
| 1332 | - [ Jdec.map NullArrayInOccupationalistElement (Jdec.array (Jdec.null ())) | |
| 1332 | + [ Jdec.map NullArrayInOccupationalistElement (Jdec.array (Jdec.null ()) ) | |
| 1333 | 1333 | , Jdec.null NullInOccupationalistElement |
| 1334 | 1334 | , Jdec.map OccupationalistClassInOccupationalistElement occupationalistClass |
| 1335 | 1335 | ] |
| @@ -1580,7 +1580,7 @@ encodePiccadilly x = case x of | ||
| 1580 | 1580 | piffler : Jdec.Decoder Piffler |
| 1581 | 1581 | piffler = |
| 1582 | 1582 | Jdec.oneOf |
| 1583 | - [ Jdec.map NullArrayInPiffler (Jdec.array (Jdec.null ())) | |
| 1583 | + [ Jdec.map NullArrayInPiffler (Jdec.array (Jdec.null ()) ) | |
| 1584 | 1584 | , Jdec.map MonaziteClassInPiffler monaziteClass |
| 1585 | 1585 | ] |
| 1586 | 1586 | |
| @@ -1701,7 +1701,7 @@ encodePoliorcetic x = case x of | ||
| 1701 | 1701 | poormaster : Jdec.Decoder Poormaster |
| 1702 | 1702 | poormaster = |
| 1703 | 1703 | Jdec.oneOf |
| 1704 | - [ Jdec.map IntegerArrayInPoormaster (Jdec.array Jdec.int) | |
| 1704 | + [ Jdec.map IntegerArrayInPoormaster (Jdec.array Jdec.int ) | |
| 1705 | 1705 | , Jdec.null NullInPoormaster |
| 1706 | 1706 | , Jdec.map IntegerMapInPoormaster (Jdec.dict Jdec.int) |
| 1707 | 1707 | ] |
| @@ -1778,7 +1778,7 @@ encodePotwhiskyClass x = | ||
| 1778 | 1778 | practicalizer : Jdec.Decoder Practicalizer |
| 1779 | 1779 | practicalizer = |
| 1780 | 1780 | Jdec.oneOf |
| 1781 | - [ Jdec.map NullArrayInPracticalizer (Jdec.array (Jdec.null ())) | |
| 1781 | + [ Jdec.map NullArrayInPracticalizer (Jdec.array (Jdec.null ()) ) | |
| 1782 | 1782 | , Jdec.map StringInPracticalizer Jdec.string |
| 1783 | 1783 | , Jdec.map MonaziteClassInPracticalizer monaziteClass |
| 1784 | 1784 | ] |
| @@ -1792,7 +1792,7 @@ encodePracticalizer x = case x of | ||
| 1792 | 1792 | prefreshmanElement : Jdec.Decoder PrefreshmanElement |
| 1793 | 1793 | prefreshmanElement = |
| 1794 | 1794 | Jdec.oneOf |
| 1795 | - [ Jdec.map NullArrayInPrefreshmanElement (Jdec.array (Jdec.null ())) | |
| 1795 | + [ Jdec.map NullArrayInPrefreshmanElement (Jdec.array (Jdec.null ()) ) | |
| 1796 | 1796 | , Jdec.map StringInPrefreshmanElement Jdec.string |
| 1797 | 1797 | , Jdec.map PrefreshmanClassInPrefreshmanElement prefreshmanClass |
| 1798 | 1798 | ] |
| @@ -1855,7 +1855,7 @@ encodePrefreshmanClass x = | ||
| 1855 | 1855 | prehensility : Jdec.Decoder Prehensility |
| 1856 | 1856 | prehensility = |
| 1857 | 1857 | Jdec.oneOf |
| 1858 | - [ Jdec.map NullArrayInPrehensility (Jdec.array (Jdec.null ())) | |
| 1858 | + [ Jdec.map NullArrayInPrehensility (Jdec.array (Jdec.null ()) ) | |
| 1859 | 1859 | , Jdec.map BoolInPrehensility Jdec.bool |
| 1860 | 1860 | , Jdec.map MonaziteClassInPrehensility monaziteClass |
| 1861 | 1861 | ] |
| @@ -1869,7 +1869,7 @@ encodePrehensility x = case x of | ||
| 1869 | 1869 | prevoidance : Jdec.Decoder Prevoidance |
| 1870 | 1870 | prevoidance = |
| 1871 | 1871 | Jdec.oneOf |
| 1872 | - [ Jdec.map IntegerArrayInPrevoidance (Jdec.array Jdec.int) | |
| 1872 | + [ Jdec.map IntegerArrayInPrevoidance (Jdec.array Jdec.int ) | |
| 1873 | 1873 | , Jdec.map IntegerInPrevoidance Jdec.int |
| 1874 | 1874 | , Jdec.map MonaziteClassInPrevoidance monaziteClass |
| 1875 | 1875 | ] |
| @@ -1883,7 +1883,7 @@ encodePrevoidance x = case x of | ||
| 1883 | 1883 | protext : Jdec.Decoder Protext |
| 1884 | 1884 | protext = |
| 1885 | 1885 | Jdec.oneOf |
| 1886 | - [ Jdec.map IntegerArrayInProtext (Jdec.array Jdec.int) | |
| 1886 | + [ Jdec.map IntegerArrayInProtext (Jdec.array Jdec.int ) | |
| 1887 | 1887 | , Jdec.map BoolInProtext Jdec.bool |
| 1888 | 1888 | , Jdec.map MonaziteClassInProtext monaziteClass |
| 1889 | 1889 | ] |
Melmdefault / QuickType.elm+60 −60
| @@ -627,48 +627,48 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 627 | 627 | quickType : Jdec.Decoder QuickType |
| 628 | 628 | quickType = |
| 629 | 629 | Jdec.succeed QuickType |
| 630 | - |> Jpipe.required "juror" (Jdec.list jurorElement) | |
| 631 | - |> Jpipe.required "kongoni" (Jdec.list kongoni) | |
| 632 | - |> Jpipe.required "ladronism" (Jdec.list ladronismElement) | |
| 633 | - |> Jpipe.required "landlubberly" (Jdec.list landlubberlyElement) | |
| 634 | - |> Jpipe.required "listener" (Jdec.list listener) | |
| 635 | - |> Jpipe.required "lupus" (Jdec.list lupusElement) | |
| 636 | - |> Jpipe.required "maslin" (Jdec.list maslin) | |
| 637 | - |> Jpipe.required "monazite" (Jdec.list monaziteElement) | |
| 638 | - |> Jpipe.required "monoliteral" (Jdec.list monoliteral) | |
| 639 | - |> Jpipe.required "monotheistically" (Jdec.list monotheisticallyElement) | |
| 640 | - |> Jpipe.required "montage" (Jdec.list montage) | |
| 641 | - |> Jpipe.required "moralness" (Jdec.list moralness) | |
| 642 | - |> Jpipe.required "mowra" (Jdec.list (Jdec.nullable monaziteClass)) | |
| 643 | - |> Jpipe.required "mulishly" (Jdec.list mulishly) | |
| 644 | - |> Jpipe.required "myoscope" (Jdec.list myoscope) | |
| 645 | - |> Jpipe.required "nach" (Jdec.list (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.int)))) | |
| 646 | - |> Jpipe.required "neuromastic" (Jdec.list neuromastic) | |
| 647 | - |> Jpipe.required "noncontributing" (Jdec.list noncontributing) | |
| 648 | - |> Jpipe.required "nonnervous" (Jdec.list nonnervous) | |
| 649 | - |> Jpipe.required "nonvaluation" (Jdec.list nonvaluation) | |
| 650 | - |> Jpipe.required "occupationalist" (Jdec.list occupationalistElement) | |
| 651 | - |> Jpipe.required "outrival" (Jdec.list outrivalElement) | |
| 652 | - |> Jpipe.required "paleographically" (Jdec.list paleographically) | |
| 653 | - |> Jpipe.required "pamphletwise" (Jdec.list pamphletwise) | |
| 654 | - |> Jpipe.required "pediatrics" (Jdec.list pediatric) | |
| 655 | - |> Jpipe.required "perceptive" (Jdec.list Jdec.bool) | |
| 656 | - |> Jpipe.required "piaculum" (Jdec.list piaculumElement) | |
| 657 | - |> Jpipe.required "piccadilly" (Jdec.list piccadilly) | |
| 658 | - |> Jpipe.required "piffler" (Jdec.list piffler) | |
| 659 | - |> Jpipe.required "pithful" (Jdec.list pithful) | |
| 660 | - |> Jpipe.required "placuntitis" (Jdec.list placuntiti) | |
| 661 | - |> Jpipe.required "plectopterous" (Jdec.list plectopterous) | |
| 662 | - |> Jpipe.required "pneumocele" (Jdec.list (Jdec.nullable pneumocele)) | |
| 663 | - |> Jpipe.required "poliorcetic" (Jdec.list poliorcetic) | |
| 664 | - |> Jpipe.required "poormaster" (Jdec.list poormaster) | |
| 665 | - |> Jpipe.required "potwhisky" (Jdec.list potwhiskyElement) | |
| 666 | - |> Jpipe.required "practicalizer" (Jdec.list practicalizer) | |
| 667 | - |> Jpipe.required "prefreshman" (Jdec.list prefreshmanElement) | |
| 668 | - |> Jpipe.required "prehensility" (Jdec.list prehensility) | |
| 669 | - |> Jpipe.required "prevoidance" (Jdec.list prevoidance) | |
| 670 | - |> Jpipe.required "probant" (Jdec.list (Jdec.dict (Jdec.nullable Jdec.int))) | |
| 671 | - |> Jpipe.required "protext" (Jdec.list protext) | |
| 630 | + |> Jpipe.required "juror" (Jdec.list jurorElement ) | |
| 631 | + |> Jpipe.required "kongoni" (Jdec.list kongoni ) | |
| 632 | + |> Jpipe.required "ladronism" (Jdec.list ladronismElement ) | |
| 633 | + |> Jpipe.required "landlubberly" (Jdec.list landlubberlyElement ) | |
| 634 | + |> Jpipe.required "listener" (Jdec.list listener ) | |
| 635 | + |> Jpipe.required "lupus" (Jdec.list lupusElement ) | |
| 636 | + |> Jpipe.required "maslin" (Jdec.list maslin ) | |
| 637 | + |> Jpipe.required "monazite" (Jdec.list monaziteElement ) | |
| 638 | + |> Jpipe.required "monoliteral" (Jdec.list monoliteral ) | |
| 639 | + |> Jpipe.required "monotheistically" (Jdec.list monotheisticallyElement ) | |
| 640 | + |> Jpipe.required "montage" (Jdec.list montage ) | |
| 641 | + |> Jpipe.required "moralness" (Jdec.list moralness ) | |
| 642 | + |> Jpipe.required "mowra" (Jdec.list (Jdec.nullable monaziteClass) ) | |
| 643 | + |> Jpipe.required "mulishly" (Jdec.list mulishly ) | |
| 644 | + |> Jpipe.required "myoscope" (Jdec.list myoscope ) | |
| 645 | + |> Jpipe.required "nach" (Jdec.list (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.int) )) ) | |
| 646 | + |> Jpipe.required "neuromastic" (Jdec.list neuromastic ) | |
| 647 | + |> Jpipe.required "noncontributing" (Jdec.list noncontributing ) | |
| 648 | + |> Jpipe.required "nonnervous" (Jdec.list nonnervous ) | |
| 649 | + |> Jpipe.required "nonvaluation" (Jdec.list nonvaluation ) | |
| 650 | + |> Jpipe.required "occupationalist" (Jdec.list occupationalistElement ) | |
| 651 | + |> Jpipe.required "outrival" (Jdec.list outrivalElement ) | |
| 652 | + |> Jpipe.required "paleographically" (Jdec.list paleographically ) | |
| 653 | + |> Jpipe.required "pamphletwise" (Jdec.list pamphletwise ) | |
| 654 | + |> Jpipe.required "pediatrics" (Jdec.list pediatric ) | |
| 655 | + |> Jpipe.required "perceptive" (Jdec.list Jdec.bool ) | |
| 656 | + |> Jpipe.required "piaculum" (Jdec.list piaculumElement ) | |
| 657 | + |> Jpipe.required "piccadilly" (Jdec.list piccadilly ) | |
| 658 | + |> Jpipe.required "piffler" (Jdec.list piffler ) | |
| 659 | + |> Jpipe.required "pithful" (Jdec.list pithful ) | |
| 660 | + |> Jpipe.required "placuntitis" (Jdec.list placuntiti ) | |
| 661 | + |> Jpipe.required "plectopterous" (Jdec.list plectopterous ) | |
| 662 | + |> Jpipe.required "pneumocele" (Jdec.list (Jdec.nullable pneumocele) ) | |
| 663 | + |> Jpipe.required "poliorcetic" (Jdec.list poliorcetic ) | |
| 664 | + |> Jpipe.required "poormaster" (Jdec.list poormaster ) | |
| 665 | + |> Jpipe.required "potwhisky" (Jdec.list potwhiskyElement ) | |
| 666 | + |> Jpipe.required "practicalizer" (Jdec.list practicalizer ) | |
| 667 | + |> Jpipe.required "prefreshman" (Jdec.list prefreshmanElement ) | |
| 668 | + |> Jpipe.required "prehensility" (Jdec.list prehensility ) | |
| 669 | + |> Jpipe.required "prevoidance" (Jdec.list prevoidance ) | |
| 670 | + |> Jpipe.required "probant" (Jdec.list (Jdec.dict (Jdec.nullable Jdec.int)) ) | |
| 671 | + |> Jpipe.required "protext" (Jdec.list protext ) | |
| 672 | 672 | |
| 673 | 673 | encodeQuickType : QuickType -> Jenc.Value |
| 674 | 674 | encodeQuickType x = |
| @@ -781,7 +781,7 @@ encodeJurorClass x = | ||
| 781 | 781 | kongoni : Jdec.Decoder Kongoni |
| 782 | 782 | kongoni = |
| 783 | 783 | Jdec.oneOf |
| 784 | - [ Jdec.map IntegerArrayInKongoni (Jdec.list Jdec.int) | |
| 784 | + [ Jdec.map IntegerArrayInKongoni (Jdec.list Jdec.int ) | |
| 785 | 785 | , Jdec.map IntegerMapInKongoni (Jdec.dict Jdec.int) |
| 786 | 786 | ] |
| 787 | 787 | |
| @@ -919,7 +919,7 @@ encodeLandlubberlyClass x = | ||
| 919 | 919 | listener : Jdec.Decoder Listener |
| 920 | 920 | listener = |
| 921 | 921 | Jdec.oneOf |
| 922 | - [ Jdec.map NullArrayInListener (Jdec.list (Jdec.null ())) | |
| 922 | + [ Jdec.map NullArrayInListener (Jdec.list (Jdec.null ()) ) | |
| 923 | 923 | , Jdec.map IntegerInListener Jdec.int |
| 924 | 924 | ] |
| 925 | 925 | |
| @@ -1132,7 +1132,7 @@ encodeMonaziteClass x = | ||
| 1132 | 1132 | monoliteral : Jdec.Decoder Monoliteral |
| 1133 | 1133 | monoliteral = |
| 1134 | 1134 | Jdec.oneOf |
| 1135 | - [ Jdec.map NullArrayInMonoliteral (Jdec.list (Jdec.null ())) | |
| 1135 | + [ Jdec.map NullArrayInMonoliteral (Jdec.list (Jdec.null ()) ) | |
| 1136 | 1136 | , Jdec.map BoolInMonoliteral Jdec.bool |
| 1137 | 1137 | ] |
| 1138 | 1138 | |
| @@ -1144,7 +1144,7 @@ encodeMonoliteral x = case x of | ||
| 1144 | 1144 | monotheisticallyElement : Jdec.Decoder MonotheisticallyElement |
| 1145 | 1145 | monotheisticallyElement = |
| 1146 | 1146 | Jdec.oneOf |
| 1147 | - [ Jdec.map NullArrayInMonotheisticallyElement (Jdec.list (Jdec.null ())) | |
| 1147 | + [ Jdec.map NullArrayInMonotheisticallyElement (Jdec.list (Jdec.null ()) ) | |
| 1148 | 1148 | , Jdec.map MonotheisticallyClassInMonotheisticallyElement monotheisticallyClass |
| 1149 | 1149 | ] |
| 1150 | 1150 | |
| @@ -1215,7 +1215,7 @@ encodeMonotheisticallyClass x = | ||
| 1215 | 1215 | montage : Jdec.Decoder Montage |
| 1216 | 1216 | montage = |
| 1217 | 1217 | Jdec.oneOf |
| 1218 | - [ Jdec.map NullArrayInMontage (Jdec.list (Jdec.null ())) | |
| 1218 | + [ Jdec.map NullArrayInMontage (Jdec.list (Jdec.null ()) ) | |
| 1219 | 1219 | , Jdec.map StringInMontage Jdec.string |
| 1220 | 1220 | , Jdec.map DoubleInMontage Jdec.float |
| 1221 | 1221 | ] |
| @@ -1229,7 +1229,7 @@ encodeMontage x = case x of | ||
| 1229 | 1229 | moralness : Jdec.Decoder Moralness |
| 1230 | 1230 | moralness = |
| 1231 | 1231 | Jdec.oneOf |
| 1232 | - [ Jdec.map NullArrayInMoralness (Jdec.list (Jdec.null ())) | |
| 1232 | + [ Jdec.map NullArrayInMoralness (Jdec.list (Jdec.null ()) ) | |
| 1233 | 1233 | , Jdec.null NullInMoralness |
| 1234 | 1234 | , Jdec.map DoubleInMoralness Jdec.float |
| 1235 | 1235 | ] |
| @@ -1243,7 +1243,7 @@ encodeMoralness x = case x of | ||
| 1243 | 1243 | mulishly : Jdec.Decoder Mulishly |
| 1244 | 1244 | mulishly = |
| 1245 | 1245 | Jdec.oneOf |
| 1246 | - [ Jdec.map IntegerArrayInMulishly (Jdec.list Jdec.int) | |
| 1246 | + [ Jdec.map IntegerArrayInMulishly (Jdec.list Jdec.int ) | |
| 1247 | 1247 | , Jdec.null NullInMulishly |
| 1248 | 1248 | , Jdec.map DoubleInMulishly Jdec.float |
| 1249 | 1249 | ] |
| @@ -1257,7 +1257,7 @@ encodeMulishly x = case x of | ||
| 1257 | 1257 | myoscope : Jdec.Decoder Myoscope |
| 1258 | 1258 | myoscope = |
| 1259 | 1259 | Jdec.oneOf |
| 1260 | - [ Jdec.map NullArrayInMyoscope (Jdec.list (Jdec.null ())) | |
| 1260 | + [ Jdec.map NullArrayInMyoscope (Jdec.list (Jdec.null ()) ) | |
| 1261 | 1261 | , Jdec.map BoolInMyoscope Jdec.bool |
| 1262 | 1262 | , Jdec.map IntegerInMyoscope Jdec.int |
| 1263 | 1263 | ] |
| @@ -1271,7 +1271,7 @@ encodeMyoscope x = case x of | ||
| 1271 | 1271 | neuromastic : Jdec.Decoder Neuromastic |
| 1272 | 1272 | neuromastic = |
| 1273 | 1273 | Jdec.oneOf |
| 1274 | - [ Jdec.map NullArrayInNeuromastic (Jdec.list (Jdec.null ())) | |
| 1274 | + [ Jdec.map NullArrayInNeuromastic (Jdec.list (Jdec.null ()) ) | |
| 1275 | 1275 | , Jdec.map DoubleInNeuromastic Jdec.float |
| 1276 | 1276 | ] |
| 1277 | 1277 | |
| @@ -1314,7 +1314,7 @@ encodeNonnervous x = case x of | ||
| 1314 | 1314 | nonvaluation : Jdec.Decoder Nonvaluation |
| 1315 | 1315 | nonvaluation = |
| 1316 | 1316 | Jdec.oneOf |
| 1317 | - [ Jdec.map NullArrayInNonvaluation (Jdec.list (Jdec.null ())) | |
| 1317 | + [ Jdec.map NullArrayInNonvaluation (Jdec.list (Jdec.null ()) ) | |
| 1318 | 1318 | , Jdec.map BoolInNonvaluation Jdec.bool |
| 1319 | 1319 | , Jdec.map DoubleInNonvaluation Jdec.float |
| 1320 | 1320 | ] |
| @@ -1328,7 +1328,7 @@ encodeNonvaluation x = case x of | ||
| 1328 | 1328 | occupationalistElement : Jdec.Decoder OccupationalistElement |
| 1329 | 1329 | occupationalistElement = |
| 1330 | 1330 | Jdec.oneOf |
| 1331 | - [ Jdec.map NullArrayInOccupationalistElement (Jdec.list (Jdec.null ())) | |
| 1331 | + [ Jdec.map NullArrayInOccupationalistElement (Jdec.list (Jdec.null ()) ) | |
| 1332 | 1332 | , Jdec.null NullInOccupationalistElement |
| 1333 | 1333 | , Jdec.map OccupationalistClassInOccupationalistElement occupationalistClass |
| 1334 | 1334 | ] |
| @@ -1579,7 +1579,7 @@ encodePiccadilly x = case x of | ||
| 1579 | 1579 | piffler : Jdec.Decoder Piffler |
| 1580 | 1580 | piffler = |
| 1581 | 1581 | Jdec.oneOf |
| 1582 | - [ Jdec.map NullArrayInPiffler (Jdec.list (Jdec.null ())) | |
| 1582 | + [ Jdec.map NullArrayInPiffler (Jdec.list (Jdec.null ()) ) | |
| 1583 | 1583 | , Jdec.map MonaziteClassInPiffler monaziteClass |
| 1584 | 1584 | ] |
| 1585 | 1585 | |
| @@ -1700,7 +1700,7 @@ encodePoliorcetic x = case x of | ||
| 1700 | 1700 | poormaster : Jdec.Decoder Poormaster |
| 1701 | 1701 | poormaster = |
| 1702 | 1702 | Jdec.oneOf |
| 1703 | - [ Jdec.map IntegerArrayInPoormaster (Jdec.list Jdec.int) | |
| 1703 | + [ Jdec.map IntegerArrayInPoormaster (Jdec.list Jdec.int ) | |
| 1704 | 1704 | , Jdec.null NullInPoormaster |
| 1705 | 1705 | , Jdec.map IntegerMapInPoormaster (Jdec.dict Jdec.int) |
| 1706 | 1706 | ] |
| @@ -1777,7 +1777,7 @@ encodePotwhiskyClass x = | ||
| 1777 | 1777 | practicalizer : Jdec.Decoder Practicalizer |
| 1778 | 1778 | practicalizer = |
| 1779 | 1779 | Jdec.oneOf |
| 1780 | - [ Jdec.map NullArrayInPracticalizer (Jdec.list (Jdec.null ())) | |
| 1780 | + [ Jdec.map NullArrayInPracticalizer (Jdec.list (Jdec.null ()) ) | |
| 1781 | 1781 | , Jdec.map StringInPracticalizer Jdec.string |
| 1782 | 1782 | , Jdec.map MonaziteClassInPracticalizer monaziteClass |
| 1783 | 1783 | ] |
| @@ -1791,7 +1791,7 @@ encodePracticalizer x = case x of | ||
| 1791 | 1791 | prefreshmanElement : Jdec.Decoder PrefreshmanElement |
| 1792 | 1792 | prefreshmanElement = |
| 1793 | 1793 | Jdec.oneOf |
| 1794 | - [ Jdec.map NullArrayInPrefreshmanElement (Jdec.list (Jdec.null ())) | |
| 1794 | + [ Jdec.map NullArrayInPrefreshmanElement (Jdec.list (Jdec.null ()) ) | |
| 1795 | 1795 | , Jdec.map StringInPrefreshmanElement Jdec.string |
| 1796 | 1796 | , Jdec.map PrefreshmanClassInPrefreshmanElement prefreshmanClass |
| 1797 | 1797 | ] |
| @@ -1854,7 +1854,7 @@ encodePrefreshmanClass x = | ||
| 1854 | 1854 | prehensility : Jdec.Decoder Prehensility |
| 1855 | 1855 | prehensility = |
| 1856 | 1856 | Jdec.oneOf |
| 1857 | - [ Jdec.map NullArrayInPrehensility (Jdec.list (Jdec.null ())) | |
| 1857 | + [ Jdec.map NullArrayInPrehensility (Jdec.list (Jdec.null ()) ) | |
| 1858 | 1858 | , Jdec.map BoolInPrehensility Jdec.bool |
| 1859 | 1859 | , Jdec.map MonaziteClassInPrehensility monaziteClass |
| 1860 | 1860 | ] |
| @@ -1868,7 +1868,7 @@ encodePrehensility x = case x of | ||
| 1868 | 1868 | prevoidance : Jdec.Decoder Prevoidance |
| 1869 | 1869 | prevoidance = |
| 1870 | 1870 | Jdec.oneOf |
| 1871 | - [ Jdec.map IntegerArrayInPrevoidance (Jdec.list Jdec.int) | |
| 1871 | + [ Jdec.map IntegerArrayInPrevoidance (Jdec.list Jdec.int ) | |
| 1872 | 1872 | , Jdec.map IntegerInPrevoidance Jdec.int |
| 1873 | 1873 | , Jdec.map MonaziteClassInPrevoidance monaziteClass |
| 1874 | 1874 | ] |
| @@ -1882,7 +1882,7 @@ encodePrevoidance x = case x of | ||
| 1882 | 1882 | protext : Jdec.Decoder Protext |
| 1883 | 1883 | protext = |
| 1884 | 1884 | Jdec.oneOf |
| 1885 | - [ Jdec.map IntegerArrayInProtext (Jdec.list Jdec.int) | |
| 1885 | + [ Jdec.map IntegerArrayInProtext (Jdec.list Jdec.int ) | |
| 1886 | 1886 | , Jdec.map BoolInProtext Jdec.bool |
| 1887 | 1887 | , Jdec.map MonaziteClassInProtext monaziteClass |
| 1888 | 1888 | ] |
Test case
2 generated files · +146 −146test/inputs/json/priority/combinations4.json
Melmarray-type-array--eed288b23e27 / QuickType.elm+73 −73
| @@ -725,58 +725,58 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 725 | 725 | quickType : Jdec.Decoder QuickType |
| 726 | 726 | quickType = |
| 727 | 727 | Jdec.succeed QuickType |
| 728 | - |> Jpipe.required "protrusive" (Jdec.array protrusive) | |
| 729 | - |> Jpipe.required "pulpitism" (Jdec.array pulpitismElement) | |
| 730 | - |> Jpipe.required "pyodermia" (Jdec.array pyodermiaElement) | |
| 731 | - |> Jpipe.required "quebrachine" (Jdec.array quebrachineElement) | |
| 732 | - |> Jpipe.required "querier" (Jdec.array querier) | |
| 733 | - |> Jpipe.required "rebarbative" (Jdec.array rebarbative) | |
| 734 | - |> Jpipe.required "reimagine" (Jdec.array reimagine) | |
| 728 | + |> Jpipe.required "protrusive" (Jdec.array protrusive ) | |
| 729 | + |> Jpipe.required "pulpitism" (Jdec.array pulpitismElement ) | |
| 730 | + |> Jpipe.required "pyodermia" (Jdec.array pyodermiaElement ) | |
| 731 | + |> Jpipe.required "quebrachine" (Jdec.array quebrachineElement ) | |
| 732 | + |> Jpipe.required "querier" (Jdec.array querier ) | |
| 733 | + |> Jpipe.required "rebarbative" (Jdec.array rebarbative ) | |
| 734 | + |> Jpipe.required "reimagine" (Jdec.array reimagine ) | |
| 735 | 735 | |> Jpipe.required "ressaut" ressaut |
| 736 | - |> Jpipe.required "retrocervical" (Jdec.array retrocervical) | |
| 737 | - |> Jpipe.required "revert" (Jdec.array revert) | |
| 738 | - |> Jpipe.required "rewrite" (Jdec.array rewriteElement) | |
| 739 | - |> Jpipe.required "saccoderm" (Jdec.array saccoderm) | |
| 740 | - |> Jpipe.required "santir" (Jdec.array santirElement) | |
| 741 | - |> Jpipe.required "saprophilous" (Jdec.array saprophilous) | |
| 742 | - |> Jpipe.required "saxten" (Jdec.array saxtenElement) | |
| 743 | - |> Jpipe.required "scatty" (Jdec.array (Jdec.nullable scatty)) | |
| 744 | - |> Jpipe.required "scoffer" (Jdec.array scoffer) | |
| 745 | - |> Jpipe.required "scrampum" (Jdec.array scrampum) | |
| 736 | + |> Jpipe.required "retrocervical" (Jdec.array retrocervical ) | |
| 737 | + |> Jpipe.required "revert" (Jdec.array revert ) | |
| 738 | + |> Jpipe.required "rewrite" (Jdec.array rewriteElement ) | |
| 739 | + |> Jpipe.required "saccoderm" (Jdec.array saccoderm ) | |
| 740 | + |> Jpipe.required "santir" (Jdec.array santirElement ) | |
| 741 | + |> Jpipe.required "saprophilous" (Jdec.array saprophilous ) | |
| 742 | + |> Jpipe.required "saxten" (Jdec.array saxtenElement ) | |
| 743 | + |> Jpipe.required "scatty" (Jdec.array (Jdec.nullable scatty) ) | |
| 744 | + |> Jpipe.required "scoffer" (Jdec.array scoffer ) | |
| 745 | + |> Jpipe.required "scrampum" (Jdec.array scrampum ) | |
| 746 | 746 | |> Jpipe.required "semantic" Jdec.float |
| 747 | - |> Jpipe.required "serpentinic" (Jdec.array serpentinic) | |
| 748 | - |> Jpipe.required "shadowable" (Jdec.array shadowable) | |
| 749 | - |> Jpipe.required "sistering" (Jdec.array sisteringElement) | |
| 750 | - |> Jpipe.required "staghunting" (Jdec.array staghunting) | |
| 751 | - |> Jpipe.required "stagmometer" (Jdec.array stagmometer) | |
| 752 | - |> Jpipe.required "stimulability" (Jdec.array stimulability) | |
| 753 | - |> Jpipe.required "strangleable" (Jdec.array strangleable) | |
| 754 | - |> Jpipe.required "strenuosity" (Jdec.array strenuosityElement) | |
| 755 | - |> Jpipe.required "tabaxir" (Jdec.array tabaxir) | |
| 756 | - |> Jpipe.required "talpiform" (Jdec.array talpiform) | |
| 757 | - |> Jpipe.required "thwack" (Jdec.array thwack) | |
| 758 | - |> Jpipe.required "to" (Jdec.array (Jdec.nullable Jdec.float)) | |
| 759 | - |> Jpipe.required "tortricine" (Jdec.array tortricine) | |
| 760 | - |> Jpipe.required "truantcy" (Jdec.array truantcyElement) | |
| 761 | - |> Jpipe.required "turgesce" (Jdec.array Jdec.string) | |
| 762 | - |> Jpipe.required "unbeginning" (Jdec.array unbeginning) | |
| 763 | - |> Jpipe.required "underdunged" (Jdec.array Jdec.float) | |
| 764 | - |> Jpipe.required "undesirability" (Jdec.array undesirability) | |
| 765 | - |> Jpipe.required "unerasing" (Jdec.array unerasing) | |
| 766 | - |> Jpipe.required "unguentarium" (Jdec.array unguentarium) | |
| 767 | - |> Jpipe.required "unimpeachably" (Jdec.array unimpeachablyElement) | |
| 768 | - |> Jpipe.required "unmortgaged" (Jdec.array unmortgaged) | |
| 769 | - |> Jpipe.required "unobstructed" (Jdec.array unobstructed) | |
| 770 | - |> Jpipe.required "unreceptivity" (Jdec.array unreceptivity) | |
| 771 | - |> Jpipe.required "unsatisfactoriness" (Jdec.array unsatisfactoriness) | |
| 772 | - |> Jpipe.required "unsecurity" (Jdec.array Jdec.int) | |
| 773 | - |> Jpipe.required "unstressed" (Jdec.array unstressedElement) | |
| 774 | - |> Jpipe.required "untasked" (Jdec.array untasked) | |
| 775 | - |> Jpipe.required "unvarying" (Jdec.array unvarying) | |
| 776 | - |> Jpipe.required "vehemently" (Jdec.array vehemently) | |
| 747 | + |> Jpipe.required "serpentinic" (Jdec.array serpentinic ) | |
| 748 | + |> Jpipe.required "shadowable" (Jdec.array shadowable ) | |
| 749 | + |> Jpipe.required "sistering" (Jdec.array sisteringElement ) | |
| 750 | + |> Jpipe.required "staghunting" (Jdec.array staghunting ) | |
| 751 | + |> Jpipe.required "stagmometer" (Jdec.array stagmometer ) | |
| 752 | + |> Jpipe.required "stimulability" (Jdec.array stimulability ) | |
| 753 | + |> Jpipe.required "strangleable" (Jdec.array strangleable ) | |
| 754 | + |> Jpipe.required "strenuosity" (Jdec.array strenuosityElement ) | |
| 755 | + |> Jpipe.required "tabaxir" (Jdec.array tabaxir ) | |
| 756 | + |> Jpipe.required "talpiform" (Jdec.array talpiform ) | |
| 757 | + |> Jpipe.required "thwack" (Jdec.array thwack ) | |
| 758 | + |> Jpipe.required "to" (Jdec.array (Jdec.nullable Jdec.float) ) | |
| 759 | + |> Jpipe.required "tortricine" (Jdec.array tortricine ) | |
| 760 | + |> Jpipe.required "truantcy" (Jdec.array truantcyElement ) | |
| 761 | + |> Jpipe.required "turgesce" (Jdec.array Jdec.string ) | |
| 762 | + |> Jpipe.required "unbeginning" (Jdec.array unbeginning ) | |
| 763 | + |> Jpipe.required "underdunged" (Jdec.array Jdec.float ) | |
| 764 | + |> Jpipe.required "undesirability" (Jdec.array undesirability ) | |
| 765 | + |> Jpipe.required "unerasing" (Jdec.array unerasing ) | |
| 766 | + |> Jpipe.required "unguentarium" (Jdec.array unguentarium ) | |
| 767 | + |> Jpipe.required "unimpeachably" (Jdec.array unimpeachablyElement ) | |
| 768 | + |> Jpipe.required "unmortgaged" (Jdec.array unmortgaged ) | |
| 769 | + |> Jpipe.required "unobstructed" (Jdec.array unobstructed ) | |
| 770 | + |> Jpipe.required "unreceptivity" (Jdec.array unreceptivity ) | |
| 771 | + |> Jpipe.required "unsatisfactoriness" (Jdec.array unsatisfactoriness ) | |
| 772 | + |> Jpipe.required "unsecurity" (Jdec.array Jdec.int ) | |
| 773 | + |> Jpipe.required "unstressed" (Jdec.array unstressedElement ) | |
| 774 | + |> Jpipe.required "untasked" (Jdec.array untasked ) | |
| 775 | + |> Jpipe.required "unvarying" (Jdec.array unvarying ) | |
| 776 | + |> Jpipe.required "vehemently" (Jdec.array vehemently ) | |
| 777 | 777 | |> Jpipe.required "warriorship" (Jdec.dict Jdec.bool) |
| 778 | - |> Jpipe.required "whitepot" (Jdec.array whitepot) | |
| 779 | - |> Jpipe.required "wrothy" (Jdec.array wrothyElement) | |
| 778 | + |> Jpipe.required "whitepot" (Jdec.array whitepot ) | |
| 779 | + |> Jpipe.required "wrothy" (Jdec.array wrothyElement ) | |
| 780 | 780 | |
| 781 | 781 | encodeQuickType : QuickType -> Jenc.Value |
| 782 | 782 | encodeQuickType x = |
| @@ -838,7 +838,7 @@ encodeQuickType x = | ||
| 838 | 838 | protrusive : Jdec.Decoder Protrusive |
| 839 | 839 | protrusive = |
| 840 | 840 | Jdec.oneOf |
| 841 | - [ Jdec.map UnionArrayInProtrusive (Jdec.array (Jdec.nullable Jdec.int)) | |
| 841 | + [ Jdec.map UnionArrayInProtrusive (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 842 | 842 | , Jdec.map DoubleInProtrusive Jdec.float |
| 843 | 843 | ] |
| 844 | 844 | |
| @@ -850,7 +850,7 @@ encodeProtrusive x = case x of | ||
| 850 | 850 | pulpitismElement : Jdec.Decoder PulpitismElement |
| 851 | 851 | pulpitismElement = |
| 852 | 852 | Jdec.oneOf |
| 853 | - [ Jdec.map IntegerArrayInPulpitismElement (Jdec.array Jdec.int) | |
| 853 | + [ Jdec.map IntegerArrayInPulpitismElement (Jdec.array Jdec.int ) | |
| 854 | 854 | , Jdec.map DoubleInPulpitismElement Jdec.float |
| 855 | 855 | , Jdec.map PulpitismClassInPulpitismElement pulpitismClass |
| 856 | 856 | ] |
| @@ -1019,7 +1019,7 @@ encodeQuerier x = case x of | ||
| 1019 | 1019 | rebarbative : Jdec.Decoder Rebarbative |
| 1020 | 1020 | rebarbative = |
| 1021 | 1021 | Jdec.oneOf |
| 1022 | - [ Jdec.map IntegerArrayInRebarbative (Jdec.array Jdec.int) | |
| 1022 | + [ Jdec.map IntegerArrayInRebarbative (Jdec.array Jdec.int ) | |
| 1023 | 1023 | , Jdec.map BoolInRebarbative Jdec.bool |
| 1024 | 1024 | , Jdec.map DoubleInRebarbative Jdec.float |
| 1025 | 1025 | ] |
| @@ -1141,7 +1141,7 @@ encodeRessaut x = | ||
| 1141 | 1141 | retrocervical : Jdec.Decoder Retrocervical |
| 1142 | 1142 | retrocervical = |
| 1143 | 1143 | Jdec.oneOf |
| 1144 | - [ Jdec.map UnionArrayInRetrocervical (Jdec.array (Jdec.nullable Jdec.int)) | |
| 1144 | + [ Jdec.map UnionArrayInRetrocervical (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 1145 | 1145 | , Jdec.map IntegerInRetrocervical Jdec.int |
| 1146 | 1146 | ] |
| 1147 | 1147 | |
| @@ -1165,7 +1165,7 @@ encodeRevert x = case x of | ||
| 1165 | 1165 | rewriteElement : Jdec.Decoder RewriteElement |
| 1166 | 1166 | rewriteElement = |
| 1167 | 1167 | Jdec.oneOf |
| 1168 | - [ Jdec.map NullArrayInRewriteElement (Jdec.array (Jdec.null ())) | |
| 1168 | + [ Jdec.map NullArrayInRewriteElement (Jdec.array (Jdec.null ()) ) | |
| 1169 | 1169 | , Jdec.map DoubleInRewriteElement Jdec.float |
| 1170 | 1170 | , Jdec.map RewriteClassInRewriteElement rewriteClass |
| 1171 | 1171 | ] |
| @@ -1228,7 +1228,7 @@ encodeRewriteClass x = | ||
| 1228 | 1228 | saccoderm : Jdec.Decoder Saccoderm |
| 1229 | 1229 | saccoderm = |
| 1230 | 1230 | Jdec.oneOf |
| 1231 | - [ Jdec.map IntegerArrayInSaccoderm (Jdec.array Jdec.int) | |
| 1231 | + [ Jdec.map IntegerArrayInSaccoderm (Jdec.array Jdec.int ) | |
| 1232 | 1232 | , Jdec.null NullInSaccoderm |
| 1233 | 1233 | , Jdec.map StringInSaccoderm Jdec.string |
| 1234 | 1234 | ] |
| @@ -1437,7 +1437,7 @@ encodeScatty x = | ||
| 1437 | 1437 | scoffer : Jdec.Decoder Scoffer |
| 1438 | 1438 | scoffer = |
| 1439 | 1439 | Jdec.oneOf |
| 1440 | - [ Jdec.map NullArrayInScoffer (Jdec.array (Jdec.null ())) | |
| 1440 | + [ Jdec.map NullArrayInScoffer (Jdec.array (Jdec.null ()) ) | |
| 1441 | 1441 | , Jdec.null NullInScoffer |
| 1442 | 1442 | , Jdec.map IntegerMapInScoffer (Jdec.dict Jdec.int) |
| 1443 | 1443 | ] |
| @@ -1451,7 +1451,7 @@ encodeScoffer x = case x of | ||
| 1451 | 1451 | scrampum : Jdec.Decoder Scrampum |
| 1452 | 1452 | scrampum = |
| 1453 | 1453 | Jdec.oneOf |
| 1454 | - [ Jdec.map IntegerArrayInScrampum (Jdec.array Jdec.int) | |
| 1454 | + [ Jdec.map IntegerArrayInScrampum (Jdec.array Jdec.int ) | |
| 1455 | 1455 | , Jdec.map BoolInScrampum Jdec.bool |
| 1456 | 1456 | , Jdec.null NullInScrampum |
| 1457 | 1457 | ] |
| @@ -1465,7 +1465,7 @@ encodeScrampum x = case x of | ||
| 1465 | 1465 | serpentinic : Jdec.Decoder Serpentinic |
| 1466 | 1466 | serpentinic = |
| 1467 | 1467 | Jdec.oneOf |
| 1468 | - [ Jdec.map IntegerArrayInSerpentinic (Jdec.array Jdec.int) | |
| 1468 | + [ Jdec.map IntegerArrayInSerpentinic (Jdec.array Jdec.int ) | |
| 1469 | 1469 | , Jdec.map DoubleInSerpentinic Jdec.float |
| 1470 | 1470 | ] |
| 1471 | 1471 | |
| @@ -1477,7 +1477,7 @@ encodeSerpentinic x = case x of | ||
| 1477 | 1477 | shadowable : Jdec.Decoder Shadowable |
| 1478 | 1478 | shadowable = |
| 1479 | 1479 | Jdec.oneOf |
| 1480 | - [ Jdec.map UnionArrayInShadowable (Jdec.array (Jdec.nullable Jdec.int)) | |
| 1480 | + [ Jdec.map UnionArrayInShadowable (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 1481 | 1481 | , Jdec.map BoolInShadowable Jdec.bool |
| 1482 | 1482 | ] |
| 1483 | 1483 | |
| @@ -1489,7 +1489,7 @@ encodeShadowable x = case x of | ||
| 1489 | 1489 | sisteringElement : Jdec.Decoder SisteringElement |
| 1490 | 1490 | sisteringElement = |
| 1491 | 1491 | Jdec.oneOf |
| 1492 | - [ Jdec.map NullArrayInSisteringElement (Jdec.array (Jdec.null ())) | |
| 1492 | + [ Jdec.map NullArrayInSisteringElement (Jdec.array (Jdec.null ()) ) | |
| 1493 | 1493 | , Jdec.map IntegerInSisteringElement Jdec.int |
| 1494 | 1494 | , Jdec.map SisteringClassInSisteringElement sisteringClass |
| 1495 | 1495 | ] |
| @@ -1611,7 +1611,7 @@ encodeStaghunting x = | ||
| 1611 | 1611 | stagmometer : Jdec.Decoder Stagmometer |
| 1612 | 1612 | stagmometer = |
| 1613 | 1613 | Jdec.oneOf |
| 1614 | - [ Jdec.map UnionArrayInStagmometer (Jdec.array (Jdec.nullable Jdec.int)) | |
| 1614 | + [ Jdec.map UnionArrayInStagmometer (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 1615 | 1615 | , Jdec.map StringInStagmometer Jdec.string |
| 1616 | 1616 | ] |
| 1617 | 1617 | |
| @@ -1637,7 +1637,7 @@ encodeStimulability x = case x of | ||
| 1637 | 1637 | strangleable : Jdec.Decoder Strangleable |
| 1638 | 1638 | strangleable = |
| 1639 | 1639 | Jdec.oneOf |
| 1640 | - [ Jdec.map NullArrayInStrangleable (Jdec.array (Jdec.null ())) | |
| 1640 | + [ Jdec.map NullArrayInStrangleable (Jdec.array (Jdec.null ()) ) | |
| 1641 | 1641 | , Jdec.map DoubleInStrangleable Jdec.float |
| 1642 | 1642 | ] |
| 1643 | 1643 | |
| @@ -1649,7 +1649,7 @@ encodeStrangleable x = case x of | ||
| 1649 | 1649 | strenuosityElement : Jdec.Decoder StrenuosityElement |
| 1650 | 1650 | strenuosityElement = |
| 1651 | 1651 | Jdec.oneOf |
| 1652 | - [ Jdec.map NullArrayInStrenuosityElement (Jdec.array (Jdec.null ())) | |
| 1652 | + [ Jdec.map NullArrayInStrenuosityElement (Jdec.array (Jdec.null ()) ) | |
| 1653 | 1653 | , Jdec.map StrenuosityClassInStrenuosityElement strenuosityClass |
| 1654 | 1654 | ] |
| 1655 | 1655 | |
| @@ -1760,7 +1760,7 @@ encodeThwack x = case x of | ||
| 1760 | 1760 | tortricine : Jdec.Decoder Tortricine |
| 1761 | 1761 | tortricine = |
| 1762 | 1762 | Jdec.oneOf |
| 1763 | - [ Jdec.map UnionArrayInTortricine (Jdec.array (Jdec.nullable Jdec.int)) | |
| 1763 | + [ Jdec.map UnionArrayInTortricine (Jdec.array (Jdec.nullable Jdec.int) ) | |
| 1764 | 1764 | , Jdec.map QuebrachineClassInTortricine quebrachineClass |
| 1765 | 1765 | ] |
| 1766 | 1766 | |
| @@ -1843,7 +1843,7 @@ encodeTruantcyClass x = | ||
| 1843 | 1843 | unbeginning : Jdec.Decoder Unbeginning |
| 1844 | 1844 | unbeginning = |
| 1845 | 1845 | Jdec.oneOf |
| 1846 | - [ Jdec.map NullArrayInUnbeginning (Jdec.array (Jdec.null ())) | |
| 1846 | + [ Jdec.map NullArrayInUnbeginning (Jdec.array (Jdec.null ()) ) | |
| 1847 | 1847 | , Jdec.map StringInUnbeginning Jdec.string |
| 1848 | 1848 | , Jdec.map IntegerMapInUnbeginning (Jdec.dict Jdec.int) |
| 1849 | 1849 | ] |
| @@ -1857,7 +1857,7 @@ encodeUnbeginning x = case x of | ||
| 1857 | 1857 | undesirability : Jdec.Decoder Undesirability |
| 1858 | 1858 | undesirability = |
| 1859 | 1859 | Jdec.oneOf |
| 1860 | - [ Jdec.map IntegerArrayInUndesirability (Jdec.array Jdec.int) | |
| 1860 | + [ Jdec.map IntegerArrayInUndesirability (Jdec.array Jdec.int ) | |
| 1861 | 1861 | , Jdec.map StringInUndesirability Jdec.string |
| 1862 | 1862 | , Jdec.map IntegerMapInUndesirability (Jdec.dict Jdec.int) |
| 1863 | 1863 | ] |
| @@ -1871,7 +1871,7 @@ encodeUndesirability x = case x of | ||
| 1871 | 1871 | unerasing : Jdec.Decoder Unerasing |
| 1872 | 1872 | unerasing = |
| 1873 | 1873 | Jdec.oneOf |
| 1874 | - [ Jdec.map NullArrayInUnerasing (Jdec.array (Jdec.null ())) | |
| 1874 | + [ Jdec.map NullArrayInUnerasing (Jdec.array (Jdec.null ()) ) | |
| 1875 | 1875 | , Jdec.map IntegerInUnerasing Jdec.int |
| 1876 | 1876 | , Jdec.map IntegerMapInUnerasing (Jdec.dict Jdec.int) |
| 1877 | 1877 | ] |
| @@ -1885,7 +1885,7 @@ encodeUnerasing x = case x of | ||
| 1885 | 1885 | unguentarium : Jdec.Decoder Unguentarium |
| 1886 | 1886 | unguentarium = |
| 1887 | 1887 | Jdec.oneOf |
| 1888 | - [ Jdec.map NullArrayInUnguentarium (Jdec.array (Jdec.null ())) | |
| 1888 | + [ Jdec.map NullArrayInUnguentarium (Jdec.array (Jdec.null ()) ) | |
| 1889 | 1889 | , Jdec.map IntegerInUnguentarium Jdec.int |
| 1890 | 1890 | , Jdec.null NullInUnguentarium |
| 1891 | 1891 | ] |
| @@ -1998,7 +1998,7 @@ encodeUnobstructed x = case x of | ||
| 1998 | 1998 | unreceptivity : Jdec.Decoder Unreceptivity |
| 1999 | 1999 | unreceptivity = |
| 2000 | 2000 | Jdec.oneOf |
| 2001 | - [ Jdec.map NullArrayInUnreceptivity (Jdec.array (Jdec.null ())) | |
| 2001 | + [ Jdec.map NullArrayInUnreceptivity (Jdec.array (Jdec.null ()) ) | |
| 2002 | 2002 | , Jdec.map IntegerInUnreceptivity Jdec.int |
| 2003 | 2003 | , Jdec.map StringInUnreceptivity Jdec.string |
| 2004 | 2004 | ] |
| @@ -2012,7 +2012,7 @@ encodeUnreceptivity x = case x of | ||
| 2012 | 2012 | unsatisfactoriness : Jdec.Decoder Unsatisfactoriness |
| 2013 | 2013 | unsatisfactoriness = |
| 2014 | 2014 | Jdec.oneOf |
| 2015 | - [ Jdec.map IntegerArrayInUnsatisfactoriness (Jdec.array Jdec.int) | |
| 2015 | + [ Jdec.map IntegerArrayInUnsatisfactoriness (Jdec.array Jdec.int ) | |
| 2016 | 2016 | , Jdec.map BoolInUnsatisfactoriness Jdec.bool |
| 2017 | 2017 | , Jdec.map IntegerInUnsatisfactoriness Jdec.int |
| 2018 | 2018 | ] |
| @@ -2089,7 +2089,7 @@ encodeUnstressedClass x = | ||
| 2089 | 2089 | untasked : Jdec.Decoder Untasked |
| 2090 | 2090 | untasked = |
| 2091 | 2091 | Jdec.oneOf |
| 2092 | - [ Jdec.map NullArrayInUntasked (Jdec.array (Jdec.null ())) | |
| 2092 | + [ Jdec.map NullArrayInUntasked (Jdec.array (Jdec.null ()) ) | |
| 2093 | 2093 | , Jdec.map DoubleInUntasked Jdec.float |
| 2094 | 2094 | , Jdec.map IntegerMapInUntasked (Jdec.dict Jdec.int) |
| 2095 | 2095 | ] |
| @@ -2117,7 +2117,7 @@ encodeUnvarying x = case x of | ||
| 2117 | 2117 | vehemently : Jdec.Decoder Vehemently |
| 2118 | 2118 | vehemently = |
| 2119 | 2119 | Jdec.oneOf |
| 2120 | - [ Jdec.map NullArrayInVehemently (Jdec.array (Jdec.null ())) | |
| 2120 | + [ Jdec.map NullArrayInVehemently (Jdec.array (Jdec.null ()) ) | |
| 2121 | 2121 | , Jdec.map BoolInVehemently Jdec.bool |
| 2122 | 2122 | , Jdec.null NullInVehemently |
| 2123 | 2123 | ] |
| @@ -2143,7 +2143,7 @@ encodeWhitepot x = case x of | ||
| 2143 | 2143 | wrothyElement : Jdec.Decoder WrothyElement |
| 2144 | 2144 | wrothyElement = |
| 2145 | 2145 | Jdec.oneOf |
| 2146 | - [ Jdec.map NullArrayInWrothyElement (Jdec.array (Jdec.null ())) | |
| 2146 | + [ Jdec.map NullArrayInWrothyElement (Jdec.array (Jdec.null ()) ) | |
| 2147 | 2147 | , Jdec.map WrothyClassInWrothyElement wrothyClass |
| 2148 | 2148 | ] |
Melmdefault / QuickType.elm+73 −73
| @@ -724,58 +724,58 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 724 | 724 | quickType : Jdec.Decoder QuickType |
| 725 | 725 | quickType = |
| 726 | 726 | Jdec.succeed QuickType |
| 727 | - |> Jpipe.required "protrusive" (Jdec.list protrusive) | |
| 728 | - |> Jpipe.required "pulpitism" (Jdec.list pulpitismElement) | |
| 729 | - |> Jpipe.required "pyodermia" (Jdec.list pyodermiaElement) | |
| 730 | - |> Jpipe.required "quebrachine" (Jdec.list quebrachineElement) | |
| 731 | - |> Jpipe.required "querier" (Jdec.list querier) | |
| 732 | - |> Jpipe.required "rebarbative" (Jdec.list rebarbative) | |
| 733 | - |> Jpipe.required "reimagine" (Jdec.list reimagine) | |
| 727 | + |> Jpipe.required "protrusive" (Jdec.list protrusive ) | |
| 728 | + |> Jpipe.required "pulpitism" (Jdec.list pulpitismElement ) | |
| 729 | + |> Jpipe.required "pyodermia" (Jdec.list pyodermiaElement ) | |
| 730 | + |> Jpipe.required "quebrachine" (Jdec.list quebrachineElement ) | |
| 731 | + |> Jpipe.required "querier" (Jdec.list querier ) | |
| 732 | + |> Jpipe.required "rebarbative" (Jdec.list rebarbative ) | |
| 733 | + |> Jpipe.required "reimagine" (Jdec.list reimagine ) | |
| 734 | 734 | |> Jpipe.required "ressaut" ressaut |
| 735 | - |> Jpipe.required "retrocervical" (Jdec.list retrocervical) | |
| 736 | - |> Jpipe.required "revert" (Jdec.list revert) | |
| 737 | - |> Jpipe.required "rewrite" (Jdec.list rewriteElement) | |
| 738 | - |> Jpipe.required "saccoderm" (Jdec.list saccoderm) | |
| 739 | - |> Jpipe.required "santir" (Jdec.list santirElement) | |
| 740 | - |> Jpipe.required "saprophilous" (Jdec.list saprophilous) | |
| 741 | - |> Jpipe.required "saxten" (Jdec.list saxtenElement) | |
| 742 | - |> Jpipe.required "scatty" (Jdec.list (Jdec.nullable scatty)) | |
| 743 | - |> Jpipe.required "scoffer" (Jdec.list scoffer) | |
| 744 | - |> Jpipe.required "scrampum" (Jdec.list scrampum) | |
| 735 | + |> Jpipe.required "retrocervical" (Jdec.list retrocervical ) | |
| 736 | + |> Jpipe.required "revert" (Jdec.list revert ) | |
| 737 | + |> Jpipe.required "rewrite" (Jdec.list rewriteElement ) | |
| 738 | + |> Jpipe.required "saccoderm" (Jdec.list saccoderm ) | |
| 739 | + |> Jpipe.required "santir" (Jdec.list santirElement ) | |
| 740 | + |> Jpipe.required "saprophilous" (Jdec.list saprophilous ) | |
| 741 | + |> Jpipe.required "saxten" (Jdec.list saxtenElement ) | |
| 742 | + |> Jpipe.required "scatty" (Jdec.list (Jdec.nullable scatty) ) | |
| 743 | + |> Jpipe.required "scoffer" (Jdec.list scoffer ) | |
| 744 | + |> Jpipe.required "scrampum" (Jdec.list scrampum ) | |
| 745 | 745 | |> Jpipe.required "semantic" Jdec.float |
| 746 | - |> Jpipe.required "serpentinic" (Jdec.list serpentinic) | |
| 747 | - |> Jpipe.required "shadowable" (Jdec.list shadowable) | |
| 748 | - |> Jpipe.required "sistering" (Jdec.list sisteringElement) | |
| 749 | - |> Jpipe.required "staghunting" (Jdec.list staghunting) | |
| 750 | - |> Jpipe.required "stagmometer" (Jdec.list stagmometer) | |
| 751 | - |> Jpipe.required "stimulability" (Jdec.list stimulability) | |
| 752 | - |> Jpipe.required "strangleable" (Jdec.list strangleable) | |
| 753 | - |> Jpipe.required "strenuosity" (Jdec.list strenuosityElement) | |
| 754 | - |> Jpipe.required "tabaxir" (Jdec.list tabaxir) | |
| 755 | - |> Jpipe.required "talpiform" (Jdec.list talpiform) | |
| 756 | - |> Jpipe.required "thwack" (Jdec.list thwack) | |
| 757 | - |> Jpipe.required "to" (Jdec.list (Jdec.nullable Jdec.float)) | |
| 758 | - |> Jpipe.required "tortricine" (Jdec.list tortricine) | |
| 759 | - |> Jpipe.required "truantcy" (Jdec.list truantcyElement) | |
| 760 | - |> Jpipe.required "turgesce" (Jdec.list Jdec.string) | |
| 761 | - |> Jpipe.required "unbeginning" (Jdec.list unbeginning) | |
| 762 | - |> Jpipe.required "underdunged" (Jdec.list Jdec.float) | |
| 763 | - |> Jpipe.required "undesirability" (Jdec.list undesirability) | |
| 764 | - |> Jpipe.required "unerasing" (Jdec.list unerasing) | |
| 765 | - |> Jpipe.required "unguentarium" (Jdec.list unguentarium) | |
| 766 | - |> Jpipe.required "unimpeachably" (Jdec.list unimpeachablyElement) | |
| 767 | - |> Jpipe.required "unmortgaged" (Jdec.list unmortgaged) | |
| 768 | - |> Jpipe.required "unobstructed" (Jdec.list unobstructed) | |
| 769 | - |> Jpipe.required "unreceptivity" (Jdec.list unreceptivity) | |
| 770 | - |> Jpipe.required "unsatisfactoriness" (Jdec.list unsatisfactoriness) | |
| 771 | - |> Jpipe.required "unsecurity" (Jdec.list Jdec.int) | |
| 772 | - |> Jpipe.required "unstressed" (Jdec.list unstressedElement) | |
| 773 | - |> Jpipe.required "untasked" (Jdec.list untasked) | |
| 774 | - |> Jpipe.required "unvarying" (Jdec.list unvarying) | |
| 775 | - |> Jpipe.required "vehemently" (Jdec.list vehemently) | |
| 746 | + |> Jpipe.required "serpentinic" (Jdec.list serpentinic ) | |
| 747 | + |> Jpipe.required "shadowable" (Jdec.list shadowable ) | |
| 748 | + |> Jpipe.required "sistering" (Jdec.list sisteringElement ) | |
| 749 | + |> Jpipe.required "staghunting" (Jdec.list staghunting ) | |
| 750 | + |> Jpipe.required "stagmometer" (Jdec.list stagmometer ) | |
| 751 | + |> Jpipe.required "stimulability" (Jdec.list stimulability ) | |
| 752 | + |> Jpipe.required "strangleable" (Jdec.list strangleable ) | |
| 753 | + |> Jpipe.required "strenuosity" (Jdec.list strenuosityElement ) | |
| 754 | + |> Jpipe.required "tabaxir" (Jdec.list tabaxir ) | |
| 755 | + |> Jpipe.required "talpiform" (Jdec.list talpiform ) | |
| 756 | + |> Jpipe.required "thwack" (Jdec.list thwack ) | |
| 757 | + |> Jpipe.required "to" (Jdec.list (Jdec.nullable Jdec.float) ) | |
| 758 | + |> Jpipe.required "tortricine" (Jdec.list tortricine ) | |
| 759 | + |> Jpipe.required "truantcy" (Jdec.list truantcyElement ) | |
| 760 | + |> Jpipe.required "turgesce" (Jdec.list Jdec.string ) | |
| 761 | + |> Jpipe.required "unbeginning" (Jdec.list unbeginning ) | |
| 762 | + |> Jpipe.required "underdunged" (Jdec.list Jdec.float ) | |
| 763 | + |> Jpipe.required "undesirability" (Jdec.list undesirability ) | |
| 764 | + |> Jpipe.required "unerasing" (Jdec.list unerasing ) | |
| 765 | + |> Jpipe.required "unguentarium" (Jdec.list unguentarium ) | |
| 766 | + |> Jpipe.required "unimpeachably" (Jdec.list unimpeachablyElement ) | |
| 767 | + |> Jpipe.required "unmortgaged" (Jdec.list unmortgaged ) | |
| 768 | + |> Jpipe.required "unobstructed" (Jdec.list unobstructed ) | |
| 769 | + |> Jpipe.required "unreceptivity" (Jdec.list unreceptivity ) | |
| 770 | + |> Jpipe.required "unsatisfactoriness" (Jdec.list unsatisfactoriness ) | |
| 771 | + |> Jpipe.required "unsecurity" (Jdec.list Jdec.int ) | |
| 772 | + |> Jpipe.required "unstressed" (Jdec.list unstressedElement ) | |
| 773 | + |> Jpipe.required "untasked" (Jdec.list untasked ) | |
| 774 | + |> Jpipe.required "unvarying" (Jdec.list unvarying ) | |
| 775 | + |> Jpipe.required "vehemently" (Jdec.list vehemently ) | |
| 776 | 776 | |> Jpipe.required "warriorship" (Jdec.dict Jdec.bool) |
| 777 | - |> Jpipe.required "whitepot" (Jdec.list whitepot) | |
| 778 | - |> Jpipe.required "wrothy" (Jdec.list wrothyElement) | |
| 777 | + |> Jpipe.required "whitepot" (Jdec.list whitepot ) | |
| 778 | + |> Jpipe.required "wrothy" (Jdec.list wrothyElement ) | |
| 779 | 779 | |
| 780 | 780 | encodeQuickType : QuickType -> Jenc.Value |
| 781 | 781 | encodeQuickType x = |
| @@ -837,7 +837,7 @@ encodeQuickType x = | ||
| 837 | 837 | protrusive : Jdec.Decoder Protrusive |
| 838 | 838 | protrusive = |
| 839 | 839 | Jdec.oneOf |
| 840 | - [ Jdec.map UnionArrayInProtrusive (Jdec.list (Jdec.nullable Jdec.int)) | |
| 840 | + [ Jdec.map UnionArrayInProtrusive (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 841 | 841 | , Jdec.map DoubleInProtrusive Jdec.float |
| 842 | 842 | ] |
| 843 | 843 | |
| @@ -849,7 +849,7 @@ encodeProtrusive x = case x of | ||
| 849 | 849 | pulpitismElement : Jdec.Decoder PulpitismElement |
| 850 | 850 | pulpitismElement = |
| 851 | 851 | Jdec.oneOf |
| 852 | - [ Jdec.map IntegerArrayInPulpitismElement (Jdec.list Jdec.int) | |
| 852 | + [ Jdec.map IntegerArrayInPulpitismElement (Jdec.list Jdec.int ) | |
| 853 | 853 | , Jdec.map DoubleInPulpitismElement Jdec.float |
| 854 | 854 | , Jdec.map PulpitismClassInPulpitismElement pulpitismClass |
| 855 | 855 | ] |
| @@ -1018,7 +1018,7 @@ encodeQuerier x = case x of | ||
| 1018 | 1018 | rebarbative : Jdec.Decoder Rebarbative |
| 1019 | 1019 | rebarbative = |
| 1020 | 1020 | Jdec.oneOf |
| 1021 | - [ Jdec.map IntegerArrayInRebarbative (Jdec.list Jdec.int) | |
| 1021 | + [ Jdec.map IntegerArrayInRebarbative (Jdec.list Jdec.int ) | |
| 1022 | 1022 | , Jdec.map BoolInRebarbative Jdec.bool |
| 1023 | 1023 | , Jdec.map DoubleInRebarbative Jdec.float |
| 1024 | 1024 | ] |
| @@ -1140,7 +1140,7 @@ encodeRessaut x = | ||
| 1140 | 1140 | retrocervical : Jdec.Decoder Retrocervical |
| 1141 | 1141 | retrocervical = |
| 1142 | 1142 | Jdec.oneOf |
| 1143 | - [ Jdec.map UnionArrayInRetrocervical (Jdec.list (Jdec.nullable Jdec.int)) | |
| 1143 | + [ Jdec.map UnionArrayInRetrocervical (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 1144 | 1144 | , Jdec.map IntegerInRetrocervical Jdec.int |
| 1145 | 1145 | ] |
| 1146 | 1146 | |
| @@ -1164,7 +1164,7 @@ encodeRevert x = case x of | ||
| 1164 | 1164 | rewriteElement : Jdec.Decoder RewriteElement |
| 1165 | 1165 | rewriteElement = |
| 1166 | 1166 | Jdec.oneOf |
| 1167 | - [ Jdec.map NullArrayInRewriteElement (Jdec.list (Jdec.null ())) | |
| 1167 | + [ Jdec.map NullArrayInRewriteElement (Jdec.list (Jdec.null ()) ) | |
| 1168 | 1168 | , Jdec.map DoubleInRewriteElement Jdec.float |
| 1169 | 1169 | , Jdec.map RewriteClassInRewriteElement rewriteClass |
| 1170 | 1170 | ] |
| @@ -1227,7 +1227,7 @@ encodeRewriteClass x = | ||
| 1227 | 1227 | saccoderm : Jdec.Decoder Saccoderm |
| 1228 | 1228 | saccoderm = |
| 1229 | 1229 | Jdec.oneOf |
| 1230 | - [ Jdec.map IntegerArrayInSaccoderm (Jdec.list Jdec.int) | |
| 1230 | + [ Jdec.map IntegerArrayInSaccoderm (Jdec.list Jdec.int ) | |
| 1231 | 1231 | , Jdec.null NullInSaccoderm |
| 1232 | 1232 | , Jdec.map StringInSaccoderm Jdec.string |
| 1233 | 1233 | ] |
| @@ -1436,7 +1436,7 @@ encodeScatty x = | ||
| 1436 | 1436 | scoffer : Jdec.Decoder Scoffer |
| 1437 | 1437 | scoffer = |
| 1438 | 1438 | Jdec.oneOf |
| 1439 | - [ Jdec.map NullArrayInScoffer (Jdec.list (Jdec.null ())) | |
| 1439 | + [ Jdec.map NullArrayInScoffer (Jdec.list (Jdec.null ()) ) | |
| 1440 | 1440 | , Jdec.null NullInScoffer |
| 1441 | 1441 | , Jdec.map IntegerMapInScoffer (Jdec.dict Jdec.int) |
| 1442 | 1442 | ] |
| @@ -1450,7 +1450,7 @@ encodeScoffer x = case x of | ||
| 1450 | 1450 | scrampum : Jdec.Decoder Scrampum |
| 1451 | 1451 | scrampum = |
| 1452 | 1452 | Jdec.oneOf |
| 1453 | - [ Jdec.map IntegerArrayInScrampum (Jdec.list Jdec.int) | |
| 1453 | + [ Jdec.map IntegerArrayInScrampum (Jdec.list Jdec.int ) | |
| 1454 | 1454 | , Jdec.map BoolInScrampum Jdec.bool |
| 1455 | 1455 | , Jdec.null NullInScrampum |
| 1456 | 1456 | ] |
| @@ -1464,7 +1464,7 @@ encodeScrampum x = case x of | ||
| 1464 | 1464 | serpentinic : Jdec.Decoder Serpentinic |
| 1465 | 1465 | serpentinic = |
| 1466 | 1466 | Jdec.oneOf |
| 1467 | - [ Jdec.map IntegerArrayInSerpentinic (Jdec.list Jdec.int) | |
| 1467 | + [ Jdec.map IntegerArrayInSerpentinic (Jdec.list Jdec.int ) | |
| 1468 | 1468 | , Jdec.map DoubleInSerpentinic Jdec.float |
| 1469 | 1469 | ] |
| 1470 | 1470 | |
| @@ -1476,7 +1476,7 @@ encodeSerpentinic x = case x of | ||
| 1476 | 1476 | shadowable : Jdec.Decoder Shadowable |
| 1477 | 1477 | shadowable = |
| 1478 | 1478 | Jdec.oneOf |
| 1479 | - [ Jdec.map UnionArrayInShadowable (Jdec.list (Jdec.nullable Jdec.int)) | |
| 1479 | + [ Jdec.map UnionArrayInShadowable (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 1480 | 1480 | , Jdec.map BoolInShadowable Jdec.bool |
| 1481 | 1481 | ] |
| 1482 | 1482 | |
| @@ -1488,7 +1488,7 @@ encodeShadowable x = case x of | ||
| 1488 | 1488 | sisteringElement : Jdec.Decoder SisteringElement |
| 1489 | 1489 | sisteringElement = |
| 1490 | 1490 | Jdec.oneOf |
| 1491 | - [ Jdec.map NullArrayInSisteringElement (Jdec.list (Jdec.null ())) | |
| 1491 | + [ Jdec.map NullArrayInSisteringElement (Jdec.list (Jdec.null ()) ) | |
| 1492 | 1492 | , Jdec.map IntegerInSisteringElement Jdec.int |
| 1493 | 1493 | , Jdec.map SisteringClassInSisteringElement sisteringClass |
| 1494 | 1494 | ] |
| @@ -1610,7 +1610,7 @@ encodeStaghunting x = | ||
| 1610 | 1610 | stagmometer : Jdec.Decoder Stagmometer |
| 1611 | 1611 | stagmometer = |
| 1612 | 1612 | Jdec.oneOf |
| 1613 | - [ Jdec.map UnionArrayInStagmometer (Jdec.list (Jdec.nullable Jdec.int)) | |
| 1613 | + [ Jdec.map UnionArrayInStagmometer (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 1614 | 1614 | , Jdec.map StringInStagmometer Jdec.string |
| 1615 | 1615 | ] |
| 1616 | 1616 | |
| @@ -1636,7 +1636,7 @@ encodeStimulability x = case x of | ||
| 1636 | 1636 | strangleable : Jdec.Decoder Strangleable |
| 1637 | 1637 | strangleable = |
| 1638 | 1638 | Jdec.oneOf |
| 1639 | - [ Jdec.map NullArrayInStrangleable (Jdec.list (Jdec.null ())) | |
| 1639 | + [ Jdec.map NullArrayInStrangleable (Jdec.list (Jdec.null ()) ) | |
| 1640 | 1640 | , Jdec.map DoubleInStrangleable Jdec.float |
| 1641 | 1641 | ] |
| 1642 | 1642 | |
| @@ -1648,7 +1648,7 @@ encodeStrangleable x = case x of | ||
| 1648 | 1648 | strenuosityElement : Jdec.Decoder StrenuosityElement |
| 1649 | 1649 | strenuosityElement = |
| 1650 | 1650 | Jdec.oneOf |
| 1651 | - [ Jdec.map NullArrayInStrenuosityElement (Jdec.list (Jdec.null ())) | |
| 1651 | + [ Jdec.map NullArrayInStrenuosityElement (Jdec.list (Jdec.null ()) ) | |
| 1652 | 1652 | , Jdec.map StrenuosityClassInStrenuosityElement strenuosityClass |
| 1653 | 1653 | ] |
| 1654 | 1654 | |
| @@ -1759,7 +1759,7 @@ encodeThwack x = case x of | ||
| 1759 | 1759 | tortricine : Jdec.Decoder Tortricine |
| 1760 | 1760 | tortricine = |
| 1761 | 1761 | Jdec.oneOf |
| 1762 | - [ Jdec.map UnionArrayInTortricine (Jdec.list (Jdec.nullable Jdec.int)) | |
| 1762 | + [ Jdec.map UnionArrayInTortricine (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 1763 | 1763 | , Jdec.map QuebrachineClassInTortricine quebrachineClass |
| 1764 | 1764 | ] |
| 1765 | 1765 | |
| @@ -1842,7 +1842,7 @@ encodeTruantcyClass x = | ||
| 1842 | 1842 | unbeginning : Jdec.Decoder Unbeginning |
| 1843 | 1843 | unbeginning = |
| 1844 | 1844 | Jdec.oneOf |
| 1845 | - [ Jdec.map NullArrayInUnbeginning (Jdec.list (Jdec.null ())) | |
| 1845 | + [ Jdec.map NullArrayInUnbeginning (Jdec.list (Jdec.null ()) ) | |
| 1846 | 1846 | , Jdec.map StringInUnbeginning Jdec.string |
| 1847 | 1847 | , Jdec.map IntegerMapInUnbeginning (Jdec.dict Jdec.int) |
| 1848 | 1848 | ] |
| @@ -1856,7 +1856,7 @@ encodeUnbeginning x = case x of | ||
| 1856 | 1856 | undesirability : Jdec.Decoder Undesirability |
| 1857 | 1857 | undesirability = |
| 1858 | 1858 | Jdec.oneOf |
| 1859 | - [ Jdec.map IntegerArrayInUndesirability (Jdec.list Jdec.int) | |
| 1859 | + [ Jdec.map IntegerArrayInUndesirability (Jdec.list Jdec.int ) | |
| 1860 | 1860 | , Jdec.map StringInUndesirability Jdec.string |
| 1861 | 1861 | , Jdec.map IntegerMapInUndesirability (Jdec.dict Jdec.int) |
| 1862 | 1862 | ] |
| @@ -1870,7 +1870,7 @@ encodeUndesirability x = case x of | ||
| 1870 | 1870 | unerasing : Jdec.Decoder Unerasing |
| 1871 | 1871 | unerasing = |
| 1872 | 1872 | Jdec.oneOf |
| 1873 | - [ Jdec.map NullArrayInUnerasing (Jdec.list (Jdec.null ())) | |
| 1873 | + [ Jdec.map NullArrayInUnerasing (Jdec.list (Jdec.null ()) ) | |
| 1874 | 1874 | , Jdec.map IntegerInUnerasing Jdec.int |
| 1875 | 1875 | , Jdec.map IntegerMapInUnerasing (Jdec.dict Jdec.int) |
| 1876 | 1876 | ] |
| @@ -1884,7 +1884,7 @@ encodeUnerasing x = case x of | ||
| 1884 | 1884 | unguentarium : Jdec.Decoder Unguentarium |
| 1885 | 1885 | unguentarium = |
| 1886 | 1886 | Jdec.oneOf |
| 1887 | - [ Jdec.map NullArrayInUnguentarium (Jdec.list (Jdec.null ())) | |
| 1887 | + [ Jdec.map NullArrayInUnguentarium (Jdec.list (Jdec.null ()) ) | |
| 1888 | 1888 | , Jdec.map IntegerInUnguentarium Jdec.int |
| 1889 | 1889 | , Jdec.null NullInUnguentarium |
| 1890 | 1890 | ] |
| @@ -1997,7 +1997,7 @@ encodeUnobstructed x = case x of | ||
| 1997 | 1997 | unreceptivity : Jdec.Decoder Unreceptivity |
| 1998 | 1998 | unreceptivity = |
| 1999 | 1999 | Jdec.oneOf |
| 2000 | - [ Jdec.map NullArrayInUnreceptivity (Jdec.list (Jdec.null ())) | |
| 2000 | + [ Jdec.map NullArrayInUnreceptivity (Jdec.list (Jdec.null ()) ) | |
| 2001 | 2001 | , Jdec.map IntegerInUnreceptivity Jdec.int |
| 2002 | 2002 | , Jdec.map StringInUnreceptivity Jdec.string |
| 2003 | 2003 | ] |
| @@ -2011,7 +2011,7 @@ encodeUnreceptivity x = case x of | ||
| 2011 | 2011 | unsatisfactoriness : Jdec.Decoder Unsatisfactoriness |
| 2012 | 2012 | unsatisfactoriness = |
| 2013 | 2013 | Jdec.oneOf |
| 2014 | - [ Jdec.map IntegerArrayInUnsatisfactoriness (Jdec.list Jdec.int) | |
| 2014 | + [ Jdec.map IntegerArrayInUnsatisfactoriness (Jdec.list Jdec.int ) | |
| 2015 | 2015 | , Jdec.map BoolInUnsatisfactoriness Jdec.bool |
| 2016 | 2016 | , Jdec.map IntegerInUnsatisfactoriness Jdec.int |
| 2017 | 2017 | ] |
| @@ -2088,7 +2088,7 @@ encodeUnstressedClass x = | ||
| 2088 | 2088 | untasked : Jdec.Decoder Untasked |
| 2089 | 2089 | untasked = |
| 2090 | 2090 | Jdec.oneOf |
| 2091 | - [ Jdec.map NullArrayInUntasked (Jdec.list (Jdec.null ())) | |
| 2091 | + [ Jdec.map NullArrayInUntasked (Jdec.list (Jdec.null ()) ) | |
| 2092 | 2092 | , Jdec.map DoubleInUntasked Jdec.float |
| 2093 | 2093 | , Jdec.map IntegerMapInUntasked (Jdec.dict Jdec.int) |
| 2094 | 2094 | ] |
| @@ -2116,7 +2116,7 @@ encodeUnvarying x = case x of | ||
| 2116 | 2116 | vehemently : Jdec.Decoder Vehemently |
| 2117 | 2117 | vehemently = |
| 2118 | 2118 | Jdec.oneOf |
| 2119 | - [ Jdec.map NullArrayInVehemently (Jdec.list (Jdec.null ())) | |
| 2119 | + [ Jdec.map NullArrayInVehemently (Jdec.list (Jdec.null ()) ) | |
| 2120 | 2120 | , Jdec.map BoolInVehemently Jdec.bool |
| 2121 | 2121 | , Jdec.null NullInVehemently |
| 2122 | 2122 | ] |
| @@ -2142,7 +2142,7 @@ encodeWhitepot x = case x of | ||
| 2142 | 2142 | wrothyElement : Jdec.Decoder WrothyElement |
| 2143 | 2143 | wrothyElement = |
| 2144 | 2144 | Jdec.oneOf |
| 2145 | - [ Jdec.map NullArrayInWrothyElement (Jdec.list (Jdec.null ())) | |
| 2145 | + [ Jdec.map NullArrayInWrothyElement (Jdec.list (Jdec.null ()) ) | |
| 2146 | 2146 | , Jdec.map WrothyClassInWrothyElement wrothyClass |
| 2147 | 2147 | ] |
Test case
1 generated file · +2 −2test/inputs/json/priority/combined-enum.json
Melmdefault / QuickType.elm+2 −2
| @@ -52,8 +52,8 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 52 | 52 | quickType : Jdec.Decoder QuickType |
| 53 | 53 | quickType = |
| 54 | 54 | Jdec.succeed QuickType |
| 55 | - |> Jpipe.required "bar" (Jdec.list bar) | |
| 56 | - |> Jpipe.required "foo" (Jdec.list bar) | |
| 55 | + |> Jpipe.required "bar" (Jdec.list bar ) | |
| 56 | + |> Jpipe.required "foo" (Jdec.list bar ) | |
| 57 | 57 | |
| 58 | 58 | encodeQuickType : QuickType -> Jenc.Value |
| 59 | 59 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/empty-enum.json
Melmdefault / QuickType.elm+1 −1
| @@ -45,7 +45,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 45 | 45 | quickType : Jdec.Decoder QuickType |
| 46 | 46 | quickType = |
| 47 | 47 | Jdec.succeed QuickType |
| 48 | - |> Jpipe.required "foo" (Jdec.list foo) | |
| 48 | + |> Jpipe.required "foo" (Jdec.list foo ) | |
| 49 | 49 | |
| 50 | 50 | encodeQuickType : QuickType -> Jenc.Value |
| 51 | 51 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/issue2680-object-array.json
Melmdefault / QuickType.elm+1 −1
| @@ -38,7 +38,7 @@ optionalField key decoder fallback = | ||
| 38 | 38 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 39 | 39 | |
| 40 | 40 | quickType : Jdec.Decoder QuickType |
| 41 | -quickType = Jdec.list quickTypeElement | |
| 41 | +quickType = Jdec.list quickTypeElement | |
| 42 | 42 | |
| 43 | 43 | quickTypeToString : QuickType -> String |
| 44 | 44 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/priority/issue2680-scalar-array.json
Melmdefault / QuickType.elm+1 −1
| @@ -33,7 +33,7 @@ optionalField key decoder fallback = | ||
| 33 | 33 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 34 | 34 | |
| 35 | 35 | quickType : Jdec.Decoder QuickType |
| 36 | -quickType = Jdec.list Jdec.int | |
| 36 | +quickType = Jdec.list Jdec.int | |
| 37 | 37 | |
| 38 | 38 | quickTypeToString : QuickType -> String |
| 39 | 39 | quickTypeToString r = Jenc.encode 0 (Jenc.list Jenc.int r) |
Test case
1 generated file · +1 −1test/inputs/json/priority/kotlin-enum-class-case-collision.json
Melmdefault / QuickType.elm+1 −1
| @@ -43,7 +43,7 @@ optionalField key decoder fallback = | ||
| 43 | 43 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 44 | 44 | |
| 45 | 45 | quickType : Jdec.Decoder QuickType |
| 46 | -quickType = Jdec.list quickTypeElement | |
| 46 | +quickType = Jdec.list quickTypeElement | |
| 47 | 47 | |
| 48 | 48 | quickTypeToString : QuickType -> String |
| 49 | 49 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +8 −8test/inputs/json/priority/nbl-stats.json
Melmdefault / QuickType.elm+8 −8
| @@ -401,19 +401,19 @@ quickType = | ||
| 401 | 401 | |> Jpipe.required "clock" Jdec.string |
| 402 | 402 | |> Jpipe.required "disableMatch" Jdec.int |
| 403 | 403 | |> Jpipe.required "inOT" Jdec.int |
| 404 | - |> Jpipe.required "leaddata" (Jdec.list (Jdec.list leaddatumElement)) | |
| 404 | + |> Jpipe.required "leaddata" (Jdec.list (Jdec.list leaddatumElement ) ) | |
| 405 | 405 | |> Jpipe.required "officials_referee1" Jdec.string |
| 406 | 406 | |> Jpipe.required "officials_referee2" Jdec.string |
| 407 | 407 | |> Jpipe.required "officials_referee3" Jdec.string |
| 408 | - |> Jpipe.required "othermatches" (Jdec.list othermatch) | |
| 409 | - |> Jpipe.required "pbp" (Jdec.list pbp) | |
| 408 | + |> Jpipe.required "othermatches" (Jdec.list othermatch ) | |
| 409 | + |> Jpipe.required "pbp" (Jdec.list pbp ) | |
| 410 | 410 | |> Jpipe.required "period" Jdec.int |
| 411 | 411 | |> Jpipe.required "periodLengthOVERTIME" Jdec.int |
| 412 | 412 | |> Jpipe.required "periodLengthREGULAR" Jdec.int |
| 413 | 413 | |> Jpipe.required "periodType" perType |
| 414 | 414 | |> Jpipe.required "periodsMax" Jdec.int |
| 415 | - |> Jpipe.required "scorers" (Jdec.dict (Jdec.list scorer)) | |
| 416 | - |> Jpipe.required "timeline" (Jdec.list Jdec.value) | |
| 415 | + |> Jpipe.required "scorers" (Jdec.dict (Jdec.list scorer )) | |
| 416 | + |> Jpipe.required "timeline" (Jdec.list Jdec.value ) | |
| 417 | 417 | |> Jpipe.required "tm" (Jdec.dict tm) |
| 418 | 418 | |> Jpipe.required "totalTimeAdded" Jdec.int |
| 419 | 419 | |> Jpipe.required "totallds" totallds |
| @@ -750,7 +750,7 @@ scorer = | ||
| 750 | 750 | |> Jpipe.custom (optionalField "scoreboardName" (Jdec.nullable scoreboardNameEnum) Nothing) |
| 751 | 751 | |> Jpipe.required "shirtNumber" Jdec.string |
| 752 | 752 | |> Jpipe.custom (optionalField "summary" (Jdec.nullable Jdec.string) Nothing) |
| 753 | - |> Jpipe.custom (optionalField "times" (Jdec.nullable (Jdec.list time)) Nothing) | |
| 753 | + |> Jpipe.custom (optionalField "times" (Jdec.nullable (Jdec.list time )) Nothing) | |
| 754 | 754 | |> Jpipe.required "tno" Jdec.int |
| 755 | 755 | |> Jpipe.custom (optionalField "tot" (Jdec.nullable Jdec.int) Nothing) |
| 756 | 756 | |
| @@ -811,10 +811,10 @@ tm = | ||
| 811 | 811 | |> Jpipe.required "p4_score" Jdec.int |
| 812 | 812 | |> Jpipe.required "pl" (Jdec.dict pl) |
| 813 | 813 | |> Jpipe.required "score" Jdec.int |
| 814 | - |> Jpipe.required "scoring" (Jdec.list scorer) | |
| 814 | + |> Jpipe.required "scoring" (Jdec.list scorer ) | |
| 815 | 815 | |> Jpipe.required "shortName" Jdec.string |
| 816 | 816 | |> Jpipe.required "shortNameInternational" Jdec.string |
| 817 | - |> Jpipe.required "shot" (Jdec.list shot) | |
| 817 | + |> Jpipe.required "shot" (Jdec.list shot ) | |
| 818 | 818 | |> Jpipe.required "timeouts" Jdec.int |
| 819 | 819 | |> Jpipe.required "tot_eff_1" Jdec.int |
| 820 | 820 | |> Jpipe.required "tot_eff_2" Jdec.int |
Test case
1 generated file · +77 −77test/inputs/json/priority/nst-test-suite.json
Melmdefault / QuickType.elm+77 −77
| @@ -197,36 +197,36 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 197 | 197 | quickType : Jdec.Decoder QuickType |
| 198 | 198 | quickType = |
| 199 | 199 | Jdec.succeed QuickType |
| 200 | - |> Jpipe.required "y_number_0e1.json" (Jdec.list Jdec.float) | |
| 201 | - |> Jpipe.required "y_array_arraysWithSpaces.json" (Jdec.list (Jdec.list Jdec.value)) | |
| 202 | - |> Jpipe.required "y_array_empty.json" (Jdec.list Jdec.value) | |
| 203 | - |> Jpipe.required "y_array_empty-string.json" (Jdec.list Jdec.string) | |
| 204 | - |> Jpipe.required "y_array_ending_with_newline.json" (Jdec.list Jdec.string) | |
| 205 | - |> Jpipe.required "y_array_false.json" (Jdec.list Jdec.bool) | |
| 206 | - |> Jpipe.required "y_array_heterogeneous.json" (Jdec.list yArrayHeterogeneousJSON) | |
| 207 | - |> Jpipe.required "y_array_null.json" (Jdec.list (Jdec.null ())) | |
| 208 | - |> Jpipe.required "y_array_with_1_and_newline.json" (Jdec.list Jdec.int) | |
| 209 | - |> Jpipe.required "y_array_with_leading_space.json" (Jdec.list Jdec.int) | |
| 210 | - |> Jpipe.required "y_array_with_several_null.json" (Jdec.list (Jdec.nullable Jdec.int)) | |
| 211 | - |> Jpipe.required "y_array_with_trailing_space.json" (Jdec.list Jdec.int) | |
| 212 | - |> Jpipe.required "y_number_0e+1.json" (Jdec.list Jdec.float) | |
| 213 | - |> Jpipe.required "y_number_after_space.json" (Jdec.list Jdec.int) | |
| 214 | - |> Jpipe.required "y_number_double_close_to_zero.json" (Jdec.list Jdec.float) | |
| 215 | - |> Jpipe.required "y_number_int_with_exp.json" (Jdec.list Jdec.float) | |
| 216 | - |> Jpipe.required "y_number.json" (Jdec.list Jdec.float) | |
| 217 | - |> Jpipe.required "y_number_minus_zero.json" (Jdec.list Jdec.int) | |
| 218 | - |> Jpipe.required "y_number_negative_int.json" (Jdec.list Jdec.int) | |
| 219 | - |> Jpipe.required "y_number_negative_one.json" (Jdec.list Jdec.int) | |
| 220 | - |> Jpipe.required "y_number_negative_zero.json" (Jdec.list Jdec.int) | |
| 221 | - |> Jpipe.required "y_number_real_capital_e.json" (Jdec.list Jdec.float) | |
| 222 | - |> Jpipe.required "y_number_real_capital_e_neg_exp.json" (Jdec.list Jdec.float) | |
| 223 | - |> Jpipe.required "y_number_real_capital_e_pos_exp.json" (Jdec.list Jdec.float) | |
| 224 | - |> Jpipe.required "y_number_real_exponent.json" (Jdec.list Jdec.float) | |
| 225 | - |> Jpipe.required "y_number_real_fraction_exponent.json" (Jdec.list Jdec.float) | |
| 226 | - |> Jpipe.required "y_number_real_neg_exp.json" (Jdec.list Jdec.float) | |
| 227 | - |> Jpipe.required "y_number_real_pos_exponent.json" (Jdec.list Jdec.float) | |
| 228 | - |> Jpipe.required "y_number_simple_int.json" (Jdec.list Jdec.int) | |
| 229 | - |> Jpipe.required "y_number_simple_real.json" (Jdec.list Jdec.float) | |
| 200 | + |> Jpipe.required "y_number_0e1.json" (Jdec.list Jdec.float ) | |
| 201 | + |> Jpipe.required "y_array_arraysWithSpaces.json" (Jdec.list (Jdec.list Jdec.value ) ) | |
| 202 | + |> Jpipe.required "y_array_empty.json" (Jdec.list Jdec.value ) | |
| 203 | + |> Jpipe.required "y_array_empty-string.json" (Jdec.list Jdec.string ) | |
| 204 | + |> Jpipe.required "y_array_ending_with_newline.json" (Jdec.list Jdec.string ) | |
| 205 | + |> Jpipe.required "y_array_false.json" (Jdec.list Jdec.bool ) | |
| 206 | + |> Jpipe.required "y_array_heterogeneous.json" (Jdec.list yArrayHeterogeneousJSON ) | |
| 207 | + |> Jpipe.required "y_array_null.json" (Jdec.list (Jdec.null ()) ) | |
| 208 | + |> Jpipe.required "y_array_with_1_and_newline.json" (Jdec.list Jdec.int ) | |
| 209 | + |> Jpipe.required "y_array_with_leading_space.json" (Jdec.list Jdec.int ) | |
| 210 | + |> Jpipe.required "y_array_with_several_null.json" (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 211 | + |> Jpipe.required "y_array_with_trailing_space.json" (Jdec.list Jdec.int ) | |
| 212 | + |> Jpipe.required "y_number_0e+1.json" (Jdec.list Jdec.float ) | |
| 213 | + |> Jpipe.required "y_number_after_space.json" (Jdec.list Jdec.int ) | |
| 214 | + |> Jpipe.required "y_number_double_close_to_zero.json" (Jdec.list Jdec.float ) | |
| 215 | + |> Jpipe.required "y_number_int_with_exp.json" (Jdec.list Jdec.float ) | |
| 216 | + |> Jpipe.required "y_number.json" (Jdec.list Jdec.float ) | |
| 217 | + |> Jpipe.required "y_number_minus_zero.json" (Jdec.list Jdec.int ) | |
| 218 | + |> Jpipe.required "y_number_negative_int.json" (Jdec.list Jdec.int ) | |
| 219 | + |> Jpipe.required "y_number_negative_one.json" (Jdec.list Jdec.int ) | |
| 220 | + |> Jpipe.required "y_number_negative_zero.json" (Jdec.list Jdec.int ) | |
| 221 | + |> Jpipe.required "y_number_real_capital_e.json" (Jdec.list Jdec.float ) | |
| 222 | + |> Jpipe.required "y_number_real_capital_e_neg_exp.json" (Jdec.list Jdec.float ) | |
| 223 | + |> Jpipe.required "y_number_real_capital_e_pos_exp.json" (Jdec.list Jdec.float ) | |
| 224 | + |> Jpipe.required "y_number_real_exponent.json" (Jdec.list Jdec.float ) | |
| 225 | + |> Jpipe.required "y_number_real_fraction_exponent.json" (Jdec.list Jdec.float ) | |
| 226 | + |> Jpipe.required "y_number_real_neg_exp.json" (Jdec.list Jdec.float ) | |
| 227 | + |> Jpipe.required "y_number_real_pos_exponent.json" (Jdec.list Jdec.float ) | |
| 228 | + |> Jpipe.required "y_number_simple_int.json" (Jdec.list Jdec.int ) | |
| 229 | + |> Jpipe.required "y_number_simple_real.json" (Jdec.list Jdec.float ) | |
| 230 | 230 | |> Jpipe.required "y_object_basic.json" yObjectBasicJSON |
| 231 | 231 | |> Jpipe.required "y_object_empty.json" json |
| 232 | 232 | |> Jpipe.required "y_object_empty_key.json" yObjectEmptyKeyJSON |
| @@ -237,49 +237,49 @@ quickType = | ||
| 237 | 237 | |> Jpipe.required "y_object_simple.json" yObjectSimpleJSON |
| 238 | 238 | |> Jpipe.required "y_object_string_unicode.json" yObjectStringUnicodeJSON |
| 239 | 239 | |> Jpipe.required "y_object_with_newlines.json" yObjectWithNewlinesJSON |
| 240 | - |> Jpipe.required "y_string_1_2_3_bytes_UTF-8_sequences.json" (Jdec.list Jdec.string) | |
| 241 | - |> Jpipe.required "y_string_accepted_surrogate_pair.json" (Jdec.list Jdec.string) | |
| 242 | - |> Jpipe.required "y_string_accepted_surrogate_pairs.json" (Jdec.list Jdec.string) | |
| 243 | - |> Jpipe.required "y_string_allowed_escapes.json" (Jdec.list Jdec.string) | |
| 244 | - |> Jpipe.required "y_string_backslash_and_u_escaped_zero.json" (Jdec.list Jdec.string) | |
| 245 | - |> Jpipe.required "y_string_backslash_doublequotes.json" (Jdec.list Jdec.string) | |
| 246 | - |> Jpipe.required "y_string_comments.json" (Jdec.list Jdec.string) | |
| 247 | - |> Jpipe.required "y_string_double_escape_a.json" (Jdec.list Jdec.string) | |
| 248 | - |> Jpipe.required "y_string_double_escape_n.json" (Jdec.list Jdec.string) | |
| 249 | - |> Jpipe.required "y_string_escaped_control_character.json" (Jdec.list Jdec.string) | |
| 250 | - |> Jpipe.required "y_string_escaped_noncharacter.json" (Jdec.list Jdec.string) | |
| 251 | - |> Jpipe.required "y_string_in_array.json" (Jdec.list Jdec.string) | |
| 252 | - |> Jpipe.required "y_string_in_array_with_leading_space.json" (Jdec.list Jdec.string) | |
| 253 | - |> Jpipe.required "y_string_last_surrogates_1_and_2.json" (Jdec.list Jdec.string) | |
| 254 | - |> Jpipe.required "y_string_nbsp_uescaped.json" (Jdec.list Jdec.string) | |
| 255 | - |> Jpipe.required "y_string_nonCharacterInUTF-8_U+10FFFF.json" (Jdec.list Jdec.string) | |
| 256 | - |> Jpipe.required "y_string_nonCharacterInUTF-8_U+1FFFF.json" (Jdec.list Jdec.string) | |
| 257 | - |> Jpipe.required "y_string_nonCharacterInUTF-8_U+FFFF.json" (Jdec.list Jdec.string) | |
| 258 | - |> Jpipe.required "y_string_null_escape.json" (Jdec.list Jdec.string) | |
| 259 | - |> Jpipe.required "y_string_one-byte-utf-8.json" (Jdec.list Jdec.string) | |
| 260 | - |> Jpipe.required "y_string_pi.json" (Jdec.list Jdec.string) | |
| 261 | - |> Jpipe.required "y_string_simple_ascii.json" (Jdec.list Jdec.string) | |
| 240 | + |> Jpipe.required "y_string_1_2_3_bytes_UTF-8_sequences.json" (Jdec.list Jdec.string ) | |
| 241 | + |> Jpipe.required "y_string_accepted_surrogate_pair.json" (Jdec.list Jdec.string ) | |
| 242 | + |> Jpipe.required "y_string_accepted_surrogate_pairs.json" (Jdec.list Jdec.string ) | |
| 243 | + |> Jpipe.required "y_string_allowed_escapes.json" (Jdec.list Jdec.string ) | |
| 244 | + |> Jpipe.required "y_string_backslash_and_u_escaped_zero.json" (Jdec.list Jdec.string ) | |
| 245 | + |> Jpipe.required "y_string_backslash_doublequotes.json" (Jdec.list Jdec.string ) | |
| 246 | + |> Jpipe.required "y_string_comments.json" (Jdec.list Jdec.string ) | |
| 247 | + |> Jpipe.required "y_string_double_escape_a.json" (Jdec.list Jdec.string ) | |
| 248 | + |> Jpipe.required "y_string_double_escape_n.json" (Jdec.list Jdec.string ) | |
| 249 | + |> Jpipe.required "y_string_escaped_control_character.json" (Jdec.list Jdec.string ) | |
| 250 | + |> Jpipe.required "y_string_escaped_noncharacter.json" (Jdec.list Jdec.string ) | |
| 251 | + |> Jpipe.required "y_string_in_array.json" (Jdec.list Jdec.string ) | |
| 252 | + |> Jpipe.required "y_string_in_array_with_leading_space.json" (Jdec.list Jdec.string ) | |
| 253 | + |> Jpipe.required "y_string_last_surrogates_1_and_2.json" (Jdec.list Jdec.string ) | |
| 254 | + |> Jpipe.required "y_string_nbsp_uescaped.json" (Jdec.list Jdec.string ) | |
| 255 | + |> Jpipe.required "y_string_nonCharacterInUTF-8_U+10FFFF.json" (Jdec.list Jdec.string ) | |
| 256 | + |> Jpipe.required "y_string_nonCharacterInUTF-8_U+1FFFF.json" (Jdec.list Jdec.string ) | |
| 257 | + |> Jpipe.required "y_string_nonCharacterInUTF-8_U+FFFF.json" (Jdec.list Jdec.string ) | |
| 258 | + |> Jpipe.required "y_string_null_escape.json" (Jdec.list Jdec.string ) | |
| 259 | + |> Jpipe.required "y_string_one-byte-utf-8.json" (Jdec.list Jdec.string ) | |
| 260 | + |> Jpipe.required "y_string_pi.json" (Jdec.list Jdec.string ) | |
| 261 | + |> Jpipe.required "y_string_simple_ascii.json" (Jdec.list Jdec.string ) | |
| 262 | 262 | |> Jpipe.required "y_string_space.json" Jdec.string |
| 263 | - |> Jpipe.required "y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json" (Jdec.list Jdec.string) | |
| 264 | - |> Jpipe.required "y_string_three-byte-utf-8.json" (Jdec.list Jdec.string) | |
| 265 | - |> Jpipe.required "y_string_two-byte-utf-8.json" (Jdec.list Jdec.string) | |
| 266 | - |> Jpipe.required "y_string_u+2028_line_sep.json" (Jdec.list Jdec.string) | |
| 267 | - |> Jpipe.required "y_string_u+2029_par_sep.json" (Jdec.list Jdec.string) | |
| 268 | - |> Jpipe.required "y_string_uEscape.json" (Jdec.list Jdec.string) | |
| 269 | - |> Jpipe.required "y_string_uescaped_newline.json" (Jdec.list Jdec.string) | |
| 270 | - |> Jpipe.required "y_string_unescaped_char_delete.json" (Jdec.list Jdec.string) | |
| 271 | - |> Jpipe.required "y_string_unicode_2.json" (Jdec.list Jdec.string) | |
| 272 | - |> Jpipe.required "y_string_unicodeEscapedBackslash.json" (Jdec.list Jdec.string) | |
| 273 | - |> Jpipe.required "y_string_unicode_escaped_double_quote.json" (Jdec.list Jdec.string) | |
| 274 | - |> Jpipe.required "y_string_unicode.json" (Jdec.list Jdec.string) | |
| 275 | - |> Jpipe.required "y_string_unicode_U+10FFFE_nonchar.json" (Jdec.list Jdec.string) | |
| 276 | - |> Jpipe.required "y_string_unicode_U+1FFFE_nonchar.json" (Jdec.list Jdec.string) | |
| 277 | - |> Jpipe.required "y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json" (Jdec.list Jdec.string) | |
| 278 | - |> Jpipe.required "y_string_unicode_U+2064_invisible_plus.json" (Jdec.list Jdec.string) | |
| 279 | - |> Jpipe.required "y_string_unicode_U+FDD0_nonchar.json" (Jdec.list Jdec.string) | |
| 280 | - |> Jpipe.required "y_string_unicode_U+FFFE_nonchar.json" (Jdec.list Jdec.string) | |
| 281 | - |> Jpipe.required "y_string_utf8.json" (Jdec.list Jdec.string) | |
| 282 | - |> Jpipe.required "y_string_with_del_character.json" (Jdec.list Jdec.string) | |
| 263 | + |> Jpipe.required "y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json" (Jdec.list Jdec.string ) | |
| 264 | + |> Jpipe.required "y_string_three-byte-utf-8.json" (Jdec.list Jdec.string ) | |
| 265 | + |> Jpipe.required "y_string_two-byte-utf-8.json" (Jdec.list Jdec.string ) | |
| 266 | + |> Jpipe.required "y_string_u+2028_line_sep.json" (Jdec.list Jdec.string ) | |
| 267 | + |> Jpipe.required "y_string_u+2029_par_sep.json" (Jdec.list Jdec.string ) | |
| 268 | + |> Jpipe.required "y_string_uEscape.json" (Jdec.list Jdec.string ) | |
| 269 | + |> Jpipe.required "y_string_uescaped_newline.json" (Jdec.list Jdec.string ) | |
| 270 | + |> Jpipe.required "y_string_unescaped_char_delete.json" (Jdec.list Jdec.string ) | |
| 271 | + |> Jpipe.required "y_string_unicode_2.json" (Jdec.list Jdec.string ) | |
| 272 | + |> Jpipe.required "y_string_unicodeEscapedBackslash.json" (Jdec.list Jdec.string ) | |
| 273 | + |> Jpipe.required "y_string_unicode_escaped_double_quote.json" (Jdec.list Jdec.string ) | |
| 274 | + |> Jpipe.required "y_string_unicode.json" (Jdec.list Jdec.string ) | |
| 275 | + |> Jpipe.required "y_string_unicode_U+10FFFE_nonchar.json" (Jdec.list Jdec.string ) | |
| 276 | + |> Jpipe.required "y_string_unicode_U+1FFFE_nonchar.json" (Jdec.list Jdec.string ) | |
| 277 | + |> Jpipe.required "y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json" (Jdec.list Jdec.string ) | |
| 278 | + |> Jpipe.required "y_string_unicode_U+2064_invisible_plus.json" (Jdec.list Jdec.string ) | |
| 279 | + |> Jpipe.required "y_string_unicode_U+FDD0_nonchar.json" (Jdec.list Jdec.string ) | |
| 280 | + |> Jpipe.required "y_string_unicode_U+FFFE_nonchar.json" (Jdec.list Jdec.string ) | |
| 281 | + |> Jpipe.required "y_string_utf8.json" (Jdec.list Jdec.string ) | |
| 282 | + |> Jpipe.required "y_string_with_del_character.json" (Jdec.list Jdec.string ) | |
| 283 | 283 | |> Jpipe.required "y_structure_lonely_false.json" Jdec.bool |
| 284 | 284 | |> Jpipe.required "y_structure_lonely_int.json" Jdec.int |
| 285 | 285 | |> Jpipe.required "y_structure_lonely_negative_real.json" Jdec.float |
| @@ -287,9 +287,9 @@ quickType = | ||
| 287 | 287 | |> Jpipe.required "y_structure_lonely_string.json" Jdec.string |
| 288 | 288 | |> Jpipe.required "y_structure_lonely_true.json" Jdec.bool |
| 289 | 289 | |> Jpipe.required "y_structure_string_empty.json" Jdec.string |
| 290 | - |> Jpipe.required "y_structure_trailing_newline.json" (Jdec.list Jdec.string) | |
| 291 | - |> Jpipe.required "y_structure_true_in_array.json" (Jdec.list Jdec.bool) | |
| 292 | - |> Jpipe.required "y_structure_whitespace_array.json" (Jdec.list Jdec.value) | |
| 290 | + |> Jpipe.required "y_structure_trailing_newline.json" (Jdec.list Jdec.string ) | |
| 291 | + |> Jpipe.required "y_structure_true_in_array.json" (Jdec.list Jdec.bool ) | |
| 292 | + |> Jpipe.required "y_structure_whitespace_array.json" (Jdec.list Jdec.value ) | |
| 293 | 293 | |
| 294 | 294 | encodeQuickType : QuickType -> Jenc.Value |
| 295 | 295 | encodeQuickType x = |
| @@ -478,7 +478,7 @@ yObjectLongStringsJSON : Jdec.Decoder YObjectLongStringsJSON | ||
| 478 | 478 | yObjectLongStringsJSON = |
| 479 | 479 | Jdec.succeed YObjectLongStringsJSON |
| 480 | 480 | |> Jpipe.required "id" Jdec.string |
| 481 | - |> Jpipe.required "x" (Jdec.list purpleX) | |
| 481 | + |> Jpipe.required "x" (Jdec.list purpleX ) | |
| 482 | 482 | |
| 483 | 483 | encodeYObjectLongStringsJSON : YObjectLongStringsJSON -> Jenc.Value |
| 484 | 484 | encodeYObjectLongStringsJSON x = |
| @@ -501,7 +501,7 @@ encodeX x = | ||
| 501 | 501 | yObjectSimpleJSON : Jdec.Decoder YObjectSimpleJSON |
| 502 | 502 | yObjectSimpleJSON = |
| 503 | 503 | Jdec.succeed YObjectSimpleJSON |
| 504 | - |> Jpipe.required "a" (Jdec.list Jdec.value) | |
| 504 | + |> Jpipe.required "a" (Jdec.list Jdec.value ) | |
| 505 | 505 | |
| 506 | 506 | encodeYObjectSimpleJSON : YObjectSimpleJSON -> Jenc.Value |
| 507 | 507 | encodeYObjectSimpleJSON x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/omit-empty.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "results" (Jdec.list result) | |
| 49 | + |> Jpipe.required "results" (Jdec.list result ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/optional-union.json
Melmdefault / QuickType.elm+1 −1
| @@ -43,7 +43,7 @@ optionalField key decoder fallback = | ||
| 43 | 43 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 44 | 44 | |
| 45 | 45 | quickType : Jdec.Decoder QuickType |
| 46 | -quickType = Jdec.list quickTypeElement | |
| 46 | +quickType = Jdec.list quickTypeElement | |
| 47 | 47 | |
| 48 | 48 | quickTypeToString : QuickType -> String |
| 49 | 49 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +1 −1test/inputs/json/priority/php-mixed-union.json
Melmdefault / QuickType.elm+1 −1
| @@ -53,7 +53,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 53 | 53 | quickType : Jdec.Decoder QuickType |
| 54 | 54 | quickType = |
| 55 | 55 | Jdec.succeed QuickType |
| 56 | - |> Jpipe.required "mixed" (Jdec.list mixedElement) | |
| 56 | + |> Jpipe.required "mixed" (Jdec.list mixedElement ) | |
| 57 | 57 | |
| 58 | 58 | encodeQuickType : QuickType -> Jenc.Value |
| 59 | 59 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/priority/php-validation.json
Melmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickType = | ||
| 46 | 46 | Jdec.succeed QuickType |
| 47 | 47 | |> Jpipe.required "boolean" Jdec.bool |
| 48 | 48 | |> Jpipe.required "integer" Jdec.int |
| 49 | - |> Jpipe.required "integers" (Jdec.list Jdec.int) | |
| 49 | + |> Jpipe.required "integers" (Jdec.list Jdec.int ) | |
| 50 | 50 | |> Jpipe.required "number" Jdec.float |
| 51 | 51 | |> Jpipe.required "string" Jdec.string |
Test case
1 generated file · +1 −1test/inputs/json/priority/union-constructor-clash.json
Melmdefault / QuickType.elm+1 −1
| @@ -52,7 +52,7 @@ quickType : Jdec.Decoder QuickType | ||
| 52 | 52 | quickType = |
| 53 | 53 | Jdec.succeed QuickType |
| 54 | 54 | |> Jpipe.required "BoolInUnion" boolInUnion |
| 55 | - |> Jpipe.required "union" (Jdec.list union) | |
| 55 | + |> Jpipe.required "union" (Jdec.list union ) | |
| 56 | 56 | |
| 57 | 57 | encodeQuickType : QuickType -> Jenc.Value |
| 58 | 58 | encodeQuickType x = |
Test case
1 generated file · +4 −4test/inputs/json/priority/unions.json
Melmdefault / QuickType.elm+4 −4
| @@ -59,9 +59,9 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 59 | 59 | quickType : Jdec.Decoder QuickType |
| 60 | 60 | quickType = |
| 61 | 61 | Jdec.succeed QuickType |
| 62 | - |> Jpipe.required "x" (Jdec.list purpleX) | |
| 63 | - |> Jpipe.required "y" (Jdec.list (Jdec.nullable Jdec.int)) | |
| 64 | - |> Jpipe.required "z" (Jdec.list zElement) | |
| 62 | + |> Jpipe.required "x" (Jdec.list purpleX ) | |
| 63 | + |> Jpipe.required "y" (Jdec.list (Jdec.nullable Jdec.int) ) | |
| 64 | + |> Jpipe.required "z" (Jdec.list zElement ) | |
| 65 | 65 | |
| 66 | 66 | encodeQuickType : QuickType -> Jenc.Value |
| 67 | 67 | encodeQuickType x = |
| @@ -88,7 +88,7 @@ encodeX x = case x of | ||
| 88 | 88 | zElement : Jdec.Decoder ZElement |
| 89 | 89 | zElement = |
| 90 | 90 | Jdec.oneOf |
| 91 | - [ Jdec.map IntegerArrayInZElement (Jdec.list Jdec.int) | |
| 91 | + [ Jdec.map IntegerArrayInZElement (Jdec.list Jdec.int ) | |
| 92 | 92 | , Jdec.map IntegerInZElement Jdec.int |
| 93 | 93 | , Jdec.map ZClassInZElement zClass |
| 94 | 94 | ] |
Test case
1 generated file · +1 −1test/inputs/json/priority/uuids.json
Melmdefault / QuickType.elm+1 −1
| @@ -50,7 +50,7 @@ quickType = | ||
| 50 | 50 | |> Jpipe.required "intValue" Jdec.int |
| 51 | 51 | |> Jpipe.required "stringValue" Jdec.string |
| 52 | 52 | |> Jpipe.required "uuidValue" Jdec.string |
| 53 | - |> Jpipe.required "uuidValues" (Jdec.list Jdec.string) | |
| 53 | + |> Jpipe.required "uuidValues" (Jdec.list Jdec.string ) | |
| 54 | 54 | |
| 55 | 55 | encodeQuickType : QuickType -> Jenc.Value |
| 56 | 56 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/samples/bitcoin-block.json
Melmdefault / QuickType.elm+1 −1
| @@ -48,7 +48,7 @@ quickType = | ||
| 48 | 48 | |> Jpipe.required "hash" Jdec.string |
| 49 | 49 | |> Jpipe.required "height" Jdec.int |
| 50 | 50 | |> Jpipe.required "time" Jdec.int |
| 51 | - |> Jpipe.required "txIndexes" (Jdec.list Jdec.int) | |
| 51 | + |> Jpipe.required "txIndexes" (Jdec.list Jdec.int ) | |
| 52 | 52 | |
| 53 | 53 | encodeQuickType : QuickType -> Jenc.Value |
| 54 | 54 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/json/samples/getting-started.json
Melmdefault / QuickType.elm+1 −1
| @@ -42,7 +42,7 @@ quickType : Jdec.Decoder QuickType | ||
| 42 | 42 | quickType = |
| 43 | 43 | Jdec.succeed QuickType |
| 44 | 44 | |> Jpipe.required "greeting" Jdec.string |
| 45 | - |> Jpipe.required "instructions" (Jdec.list Jdec.string) | |
| 45 | + |> Jpipe.required "instructions" (Jdec.list Jdec.string ) | |
| 46 | 46 | |
| 47 | 47 | encodeQuickType : QuickType -> Jenc.Value |
| 48 | 48 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/samples/github-events.json
Melmdefault / QuickType.elm+6 −6
| @@ -341,7 +341,7 @@ optionalField key decoder fallback = | ||
| 341 | 341 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 342 | 342 | |
| 343 | 343 | quickType : Jdec.Decoder QuickType |
| 344 | -quickType = Jdec.list quickTypeElement | |
| 344 | +quickType = Jdec.list quickTypeElement | |
| 345 | 345 | |
| 346 | 346 | quickTypeToString : QuickType -> String |
| 347 | 347 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
| @@ -398,7 +398,7 @@ payload = | ||
| 398 | 398 | |> Jpipe.custom (optionalField "action" (Jdec.nullable Jdec.string) Nothing) |
| 399 | 399 | |> Jpipe.custom (optionalField "before" (Jdec.nullable Jdec.string) Nothing) |
| 400 | 400 | |> Jpipe.custom (optionalField "comment" (Jdec.nullable comment) Nothing) |
| 401 | - |> Jpipe.custom (optionalField "commits" (Jdec.nullable (Jdec.list commit)) Nothing) | |
| 401 | + |> Jpipe.custom (optionalField "commits" (Jdec.nullable (Jdec.list commit )) Nothing) | |
| 402 | 402 | |> Jpipe.custom (optionalField "description" (Jdec.nullable Jdec.string) Nothing) |
| 403 | 403 | |> Jpipe.custom (optionalField "distinct_size" (Jdec.nullable Jdec.int) Nothing) |
| 404 | 404 | |> Jpipe.custom (optionalField "head" (Jdec.nullable Jdec.string) Nothing) |
| @@ -552,7 +552,7 @@ issue : Jdec.Decoder Issue | ||
| 552 | 552 | issue = |
| 553 | 553 | Jdec.succeed Issue |
| 554 | 554 | |> Jpipe.required "assignee" (Jdec.null ()) |
| 555 | - |> Jpipe.required "assignees" (Jdec.list Jdec.value) | |
| 555 | + |> Jpipe.required "assignees" (Jdec.list Jdec.value ) | |
| 556 | 556 | |> Jpipe.required "body" Jdec.string |
| 557 | 557 | |> Jpipe.required "closed_at" (Jdec.nullable Jdec.string) |
| 558 | 558 | |> Jpipe.required "comments" Jdec.int |
| @@ -561,7 +561,7 @@ issue = | ||
| 561 | 561 | |> Jpipe.required "events_url" Jdec.string |
| 562 | 562 | |> Jpipe.required "html_url" Jdec.string |
| 563 | 563 | |> Jpipe.required "id" Jdec.int |
| 564 | - |> Jpipe.required "labels" (Jdec.list label) | |
| 564 | + |> Jpipe.required "labels" (Jdec.list label ) | |
| 565 | 565 | |> Jpipe.required "labels_url" Jdec.string |
| 566 | 566 | |> Jpipe.required "locked" Jdec.bool |
| 567 | 567 | |> Jpipe.required "milestone" (Jdec.nullable milestone) |
| @@ -681,7 +681,7 @@ payloadPullRequest = | ||
| 681 | 681 | Jdec.succeed PayloadPullRequest |
| 682 | 682 | |> Jpipe.required "additions" Jdec.int |
| 683 | 683 | |> Jpipe.required "assignee" (Jdec.null ()) |
| 684 | - |> Jpipe.required "assignees" (Jdec.list Jdec.value) | |
| 684 | + |> Jpipe.required "assignees" (Jdec.list Jdec.value ) | |
| 685 | 685 | |> Jpipe.required "base" base |
| 686 | 686 | |> Jpipe.required "body" Jdec.string |
| 687 | 687 | |> Jpipe.required "changed_files" Jdec.int |
| @@ -710,7 +710,7 @@ payloadPullRequest = | ||
| 710 | 710 | |> Jpipe.required "number" Jdec.int |
| 711 | 711 | |> Jpipe.required "patch_url" Jdec.string |
| 712 | 712 | |> Jpipe.required "rebaseable" (Jdec.null ()) |
| 713 | - |> Jpipe.required "requested_reviewers" (Jdec.list Jdec.value) | |
| 713 | + |> Jpipe.required "requested_reviewers" (Jdec.list Jdec.value ) | |
| 714 | 714 | |> Jpipe.required "review_comment_url" Jdec.string |
| 715 | 715 | |> Jpipe.required "review_comments" Jdec.int |
| 716 | 716 | |> Jpipe.required "review_comments_url" Jdec.string |
Test case
1 generated file · +3 −3test/inputs/json/samples/kitchen-sink.json
Melmdefault / QuickType.elm+3 −3
| @@ -84,17 +84,17 @@ quickType = | ||
| 84 | 84 | Jdec.succeed QuickType |
| 85 | 85 | |> Jpipe.required "booleanValue" Jdec.bool |
| 86 | 86 | |> Jpipe.required "dateValue" Jdec.string |
| 87 | - |> Jpipe.required "differentThings" (Jdec.list differentThingElement) | |
| 87 | + |> Jpipe.required "differentThings" (Jdec.list differentThingElement ) | |
| 88 | 88 | |> Jpipe.required "doubleValue" Jdec.float |
| 89 | 89 | |> Jpipe.required "intValue" Jdec.int |
| 90 | 90 | |> Jpipe.required "mapValue" (Jdec.dict (Jdec.nullable Jdec.int)) |
| 91 | 91 | |> Jpipe.required "name with spaces" (Jdec.null ()) |
| 92 | 92 | |> Jpipe.required "nullValue" (Jdec.null ()) |
| 93 | 93 | |> Jpipe.required "nullableMapValue" (Jdec.dict (Jdec.nullable Jdec.int)) |
| 94 | - |> Jpipe.required "people" (Jdec.list personElement) | |
| 94 | + |> Jpipe.required "people" (Jdec.list personElement ) | |
| 95 | 95 | |> Jpipe.required "person" purplePerson |
| 96 | 96 | |> Jpipe.required "stringValue" Jdec.string |
| 97 | - |> Jpipe.required "tuples" (Jdec.list (Jdec.list intOrString)) | |
| 97 | + |> Jpipe.required "tuples" (Jdec.list (Jdec.list intOrString ) ) | |
| 98 | 98 | |> Jpipe.required "uuidValue" Jdec.string |
| 99 | 99 | |
| 100 | 100 | encodeQuickType : QuickType -> Jenc.Value |
Test case
1 generated file · +1 −1test/inputs/json/samples/null-safe.json
Melmdefault / QuickType.elm+1 −1
| @@ -55,7 +55,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 55 | 55 | quickType : Jdec.Decoder QuickType |
| 56 | 56 | quickType = |
| 57 | 57 | Jdec.succeed QuickType |
| 58 | - |> Jpipe.required "item" (Jdec.list item) | |
| 58 | + |> Jpipe.required "item" (Jdec.list item ) | |
| 59 | 59 | |
| 60 | 60 | encodeQuickType : QuickType -> Jenc.Value |
| 61 | 61 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/json/samples/pokedex.json
Melmdefault / QuickType.elm+6 −6
| @@ -96,7 +96,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 96 | 96 | quickType : Jdec.Decoder QuickType |
| 97 | 97 | quickType = |
| 98 | 98 | Jdec.succeed QuickType |
| 99 | - |> Jpipe.required "pokemon" (Jdec.list pokemon) | |
| 99 | + |> Jpipe.required "pokemon" (Jdec.list pokemon ) | |
| 100 | 100 | |
| 101 | 101 | encodeQuickType : QuickType -> Jenc.Value |
| 102 | 102 | encodeQuickType x = |
| @@ -114,15 +114,15 @@ pokemon = | ||
| 114 | 114 | |> Jpipe.required "height" Jdec.string |
| 115 | 115 | |> Jpipe.required "id" Jdec.int |
| 116 | 116 | |> Jpipe.required "img" Jdec.string |
| 117 | - |> Jpipe.required "multipliers" (Jdec.nullable (Jdec.list Jdec.float)) | |
| 117 | + |> Jpipe.required "multipliers" (Jdec.nullable (Jdec.list Jdec.float )) | |
| 118 | 118 | |> Jpipe.required "name" Jdec.string |
| 119 | - |> Jpipe.custom (optionalField "next_evolution" (Jdec.nullable (Jdec.list evolution)) Nothing) | |
| 119 | + |> Jpipe.custom (optionalField "next_evolution" (Jdec.nullable (Jdec.list evolution )) Nothing) | |
| 120 | 120 | |> Jpipe.required "num" Jdec.string |
| 121 | - |> Jpipe.required "type" (Jdec.list purpleType) | |
| 122 | - |> Jpipe.custom (optionalField "prev_evolution" (Jdec.nullable (Jdec.list evolution)) Nothing) | |
| 121 | + |> Jpipe.required "type" (Jdec.list purpleType ) | |
| 122 | + |> Jpipe.custom (optionalField "prev_evolution" (Jdec.nullable (Jdec.list evolution )) Nothing) | |
| 123 | 123 | |> Jpipe.required "spawn_chance" Jdec.float |
| 124 | 124 | |> Jpipe.required "spawn_time" Jdec.string |
| 125 | - |> Jpipe.required "weaknesses" (Jdec.list purpleType) | |
| 125 | + |> Jpipe.required "weaknesses" (Jdec.list purpleType ) | |
| 126 | 126 | |> Jpipe.required "weight" Jdec.string |
| 127 | 127 | |
| 128 | 128 | encodePokemon : Pokemon -> Jenc.Value |
Test case
1 generated file · +6 −6test/inputs/json/samples/reddit.json
Melmdefault / QuickType.elm+6 −6
| @@ -214,7 +214,7 @@ quickTypeData = | ||
| 214 | 214 | Jdec.succeed QuickTypeData |
| 215 | 215 | |> Jpipe.required "after" Jdec.string |
| 216 | 216 | |> Jpipe.required "before" (Jdec.null ()) |
| 217 | - |> Jpipe.required "children" (Jdec.list child) | |
| 217 | + |> Jpipe.required "children" (Jdec.list child ) | |
| 218 | 218 | |> Jpipe.required "modhash" Jdec.string |
| 219 | 219 | |
| 220 | 220 | encodeQuickTypeData : QuickTypeData -> Jenc.Value |
| @@ -273,7 +273,7 @@ childData = | ||
| 273 | 273 | |> Jpipe.required "locked" Jdec.bool |
| 274 | 274 | |> Jpipe.required "media" (Jdec.null ()) |
| 275 | 275 | |> Jpipe.required "media_embed" mediaEmbed |
| 276 | - |> Jpipe.required "mod_reports" (Jdec.list Jdec.value) | |
| 276 | + |> Jpipe.required "mod_reports" (Jdec.list Jdec.value ) | |
| 277 | 277 | |> Jpipe.required "name" Jdec.string |
| 278 | 278 | |> Jpipe.required "num_comments" Jdec.int |
| 279 | 279 | |> Jpipe.required "num_reports" (Jdec.null ()) |
| @@ -304,7 +304,7 @@ childData = | ||
| 304 | 304 | |> Jpipe.required "title" Jdec.string |
| 305 | 305 | |> Jpipe.required "ups" Jdec.int |
| 306 | 306 | |> Jpipe.required "url" Jdec.string |
| 307 | - |> Jpipe.required "user_reports" (Jdec.list Jdec.value) | |
| 307 | + |> Jpipe.required "user_reports" (Jdec.list Jdec.value ) | |
| 308 | 308 | |> Jpipe.required "view_count" (Jdec.null ()) |
| 309 | 309 | |> Jpipe.required "visited" Jdec.bool |
| 310 | 310 | |> Jpipe.required "whitelist_status" whitelistStatus |
| @@ -441,7 +441,7 @@ preview : Jdec.Decoder Preview | ||
| 441 | 441 | preview = |
| 442 | 442 | Jdec.succeed Preview |
| 443 | 443 | |> Jpipe.required "enabled" Jdec.bool |
| 444 | - |> Jpipe.required "images" (Jdec.list imageElement) | |
| 444 | + |> Jpipe.required "images" (Jdec.list imageElement ) | |
| 445 | 445 | |
| 446 | 446 | encodePreview : Preview -> Jenc.Value |
| 447 | 447 | encodePreview x = |
| @@ -454,7 +454,7 @@ imageElement : Jdec.Decoder ImageElement | ||
| 454 | 454 | imageElement = |
| 455 | 455 | Jdec.succeed ImageElement |
| 456 | 456 | |> Jpipe.required "id" Jdec.string |
| 457 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 457 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 458 | 458 | |> Jpipe.required "source" source |
| 459 | 459 | |> Jpipe.required "variants" variants |
| 460 | 460 | |
| @@ -498,7 +498,7 @@ encodeVariants x = | ||
| 498 | 498 | gif : Jdec.Decoder GIF |
| 499 | 499 | gif = |
| 500 | 500 | Jdec.succeed GIF |
| 501 | - |> Jpipe.required "resolutions" (Jdec.list source) | |
| 501 | + |> Jpipe.required "resolutions" (Jdec.list source ) | |
| 502 | 502 | |> Jpipe.required "source" source |
| 503 | 503 | |
| 504 | 504 | encodeGIF : GIF -> Jenc.Value |
Test case
1 generated file · +8 −8test/inputs/json/samples/spotify-album.json
Melmdefault / QuickType.elm+8 −8
| @@ -118,15 +118,15 @@ quickType : Jdec.Decoder QuickType | ||
| 118 | 118 | quickType = |
| 119 | 119 | Jdec.succeed QuickType |
| 120 | 120 | |> Jpipe.required "album_type" Jdec.string |
| 121 | - |> Jpipe.required "artists" (Jdec.list artist) | |
| 122 | - |> Jpipe.required "available_markets" (Jdec.list Jdec.string) | |
| 123 | - |> Jpipe.required "copyrights" (Jdec.list copyright) | |
| 121 | + |> Jpipe.required "artists" (Jdec.list artist ) | |
| 122 | + |> Jpipe.required "available_markets" (Jdec.list Jdec.string ) | |
| 123 | + |> Jpipe.required "copyrights" (Jdec.list copyright ) | |
| 124 | 124 | |> Jpipe.required "external_ids" externalIDS |
| 125 | 125 | |> Jpipe.required "external_urls" externalUrls |
| 126 | - |> Jpipe.required "genres" (Jdec.list Jdec.value) | |
| 126 | + |> Jpipe.required "genres" (Jdec.list Jdec.value ) | |
| 127 | 127 | |> Jpipe.required "href" Jdec.string |
| 128 | 128 | |> Jpipe.required "id" Jdec.string |
| 129 | - |> Jpipe.required "images" (Jdec.list image) | |
| 129 | + |> Jpipe.required "images" (Jdec.list image ) | |
| 130 | 130 | |> Jpipe.required "name" Jdec.string |
| 131 | 131 | |> Jpipe.required "popularity" Jdec.int |
| 132 | 132 | |> Jpipe.required "type" Jdec.string |
| @@ -232,7 +232,7 @@ tracks : Jdec.Decoder Tracks | ||
| 232 | 232 | tracks = |
| 233 | 233 | Jdec.succeed Tracks |
| 234 | 234 | |> Jpipe.required "href" Jdec.string |
| 235 | - |> Jpipe.required "items" (Jdec.list item) | |
| 235 | + |> Jpipe.required "items" (Jdec.list item ) | |
| 236 | 236 | |> Jpipe.required "limit" Jdec.int |
| 237 | 237 | |> Jpipe.required "next" (Jdec.null ()) |
| 238 | 238 | |> Jpipe.required "offset" Jdec.int |
| @@ -254,8 +254,8 @@ encodeTracks x = | ||
| 254 | 254 | item : Jdec.Decoder Item |
| 255 | 255 | item = |
| 256 | 256 | Jdec.succeed Item |
| 257 | - |> Jpipe.required "artists" (Jdec.list artist) | |
| 258 | - |> Jpipe.required "available_markets" (Jdec.list Jdec.string) | |
| 257 | + |> Jpipe.required "artists" (Jdec.list artist ) | |
| 258 | + |> Jpipe.required "available_markets" (Jdec.list Jdec.string ) | |
| 259 | 259 | |> Jpipe.required "disc_number" Jdec.int |
| 260 | 260 | |> Jpipe.required "duration_ms" Jdec.int |
| 261 | 261 | |> Jpipe.required "explicit" Jdec.bool |
Test case
1 generated file · +2 −2test/inputs/json/samples/us-senators.json
Melmdefault / QuickType.elm+2 −2
| @@ -161,7 +161,7 @@ quickType : Jdec.Decoder QuickType | ||
| 161 | 161 | quickType = |
| 162 | 162 | Jdec.succeed QuickType |
| 163 | 163 | |> Jpipe.required "meta" meta |
| 164 | - |> Jpipe.required "objects" (Jdec.list object) | |
| 164 | + |> Jpipe.required "objects" (Jdec.list object ) | |
| 165 | 165 | |
| 166 | 166 | encodeQuickType : QuickType -> Jenc.Value |
| 167 | 167 | encodeQuickType x = |
| @@ -189,7 +189,7 @@ object : Jdec.Decoder Object | ||
| 189 | 189 | object = |
| 190 | 190 | Jdec.succeed Object |
| 191 | 191 | |> Jpipe.required "caucus" (Jdec.nullable party) |
| 192 | - |> Jpipe.required "congress_numbers" (Jdec.list Jdec.int) | |
| 192 | + |> Jpipe.required "congress_numbers" (Jdec.list Jdec.int ) | |
| 193 | 193 | |> Jpipe.required "current" Jdec.bool |
| 194 | 194 | |> Jpipe.required "description" Jdec.string |
| 195 | 195 | |> Jpipe.required "district" (Jdec.null ()) |
Test case
1 generated file · +2 −2test/inputs/schema/bool-string.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -51,8 +51,8 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 51 | 51 | quickType : Jdec.Decoder QuickType |
| 52 | 52 | quickType = |
| 53 | 53 | Jdec.succeed QuickType |
| 54 | - |> Jpipe.custom (optionalField "arrNullable" (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.string))) Nothing) | |
| 55 | - |> Jpipe.custom (optionalField "arrOne" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 54 | + |> Jpipe.custom (optionalField "arrNullable" (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.string) )) Nothing) | |
| 55 | + |> Jpipe.custom (optionalField "arrOne" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 56 | 56 | |> Jpipe.required "nullable" (Jdec.nullable Jdec.string) |
| 57 | 57 | |> Jpipe.required "one" Jdec.string |
| 58 | 58 | |> Jpipe.custom (optionalField "optional" (Jdec.nullable Jdec.string) Nothing) |
Test case
1 generated file · +1 −1test/inputs/schema/boolean-subschema.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -44,7 +44,7 @@ quickType : Jdec.Decoder QuickType | ||
| 44 | 44 | quickType = |
| 45 | 45 | Jdec.succeed QuickType |
| 46 | 46 | |> Jpipe.custom (optionalField "disallowed" (Jdec.nullable Jdec.value) Nothing) |
| 47 | - |> Jpipe.required "empty" (Jdec.list Jdec.value) | |
| 47 | + |> Jpipe.required "empty" (Jdec.list Jdec.value ) | |
| 48 | 48 | |> Jpipe.required "foo" Jdec.string |
| 49 | 49 | |> Jpipe.custom (optionalField "impossible" (Jdec.nullable Jdec.value) Nothing) |
Test case
1 generated file · +2 −2test/inputs/schema/date-time.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -49,11 +49,11 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | 50 | quickType = |
| 51 | 51 | Jdec.succeed QuickType |
| 52 | - |> Jpipe.required "complex-union-array" (Jdec.list complexUnionArray) | |
| 52 | + |> Jpipe.required "complex-union-array" (Jdec.list complexUnionArray ) | |
| 53 | 53 | |> Jpipe.required "date" Jdec.string |
| 54 | 54 | |> Jpipe.required "date-time" Jdec.string |
| 55 | 55 | |> Jpipe.required "time" Jdec.string |
| 56 | - |> Jpipe.required "union-array" (Jdec.list Jdec.string) | |
| 56 | + |> Jpipe.required "union-array" (Jdec.list Jdec.string ) | |
| 57 | 57 | |
| 58 | 58 | encodeQuickType : QuickType -> Jenc.Value |
| 59 | 59 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/schema/direct-union.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -80,7 +80,7 @@ encodeThing x = | ||
| 80 | 80 | anything : Jdec.Decoder Anything |
| 81 | 81 | anything = |
| 82 | 82 | Jdec.oneOf |
| 83 | - [ Jdec.map AnythingArrayInAnything (Jdec.list Jdec.value) | |
| 83 | + [ Jdec.map AnythingArrayInAnything (Jdec.list Jdec.value ) | |
| 84 | 84 | , Jdec.map BoolInAnything Jdec.bool |
| 85 | 85 | , Jdec.map IntegerInAnything Jdec.int |
| 86 | 86 | , Jdec.null NullInAnything |
Test case
1 generated file · +2 −2test/inputs/schema/enum.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -67,11 +67,11 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 67 | 67 | quickType : Jdec.Decoder QuickType |
| 68 | 68 | quickType = |
| 69 | 69 | Jdec.succeed QuickType |
| 70 | - |> Jpipe.custom (optionalField "arr" (Jdec.nullable (Jdec.list arr)) Nothing) | |
| 70 | + |> Jpipe.custom (optionalField "arr" (Jdec.nullable (Jdec.list arr )) Nothing) | |
| 71 | 71 | |> Jpipe.custom (optionalField "for" (Jdec.nullable Jdec.string) Nothing) |
| 72 | 72 | |> Jpipe.required "gve" gve |
| 73 | 73 | |> Jpipe.custom (optionalField "lvc" (Jdec.nullable lvc) Nothing) |
| 74 | - |> Jpipe.custom (optionalField "otherArr" (Jdec.nullable (Jdec.list otherArr)) Nothing) | |
| 74 | + |> Jpipe.custom (optionalField "otherArr" (Jdec.nullable (Jdec.list otherArr )) Nothing) | |
| 75 | 75 | |
| 76 | 76 | encodeQuickType : QuickType -> Jenc.Value |
| 77 | 77 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/schema/ie-suffix-singularization.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -46,7 +46,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "cookies" (Jdec.list cookie) | |
| 49 | + |> Jpipe.required "cookies" (Jdec.list cookie ) | |
| 50 | 50 | |
| 51 | 51 | encodeQuickType : QuickType -> Jenc.Value |
| 52 | 52 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/schema/implicit-class-array-union.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -66,7 +66,7 @@ encodeQuickType x = | ||
| 66 | 66 | fooUnion : Jdec.Decoder FooUnion |
| 67 | 67 | fooUnion = |
| 68 | 68 | Jdec.oneOf |
| 69 | - [ Jdec.map IntegerArrayInFooUnion (Jdec.list Jdec.int) | |
| 69 | + [ Jdec.map IntegerArrayInFooUnion (Jdec.list Jdec.int ) | |
| 70 | 70 | , Jdec.map BoolInFooUnion Jdec.bool |
| 71 | 71 | , Jdec.map IntegerInFooUnion Jdec.int |
| 72 | 72 | , Jdec.null NullInFooUnion |
Test case
1 generated file · +2 −2test/inputs/schema/integer-string.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -51,8 +51,8 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 51 | 51 | quickType : Jdec.Decoder QuickType |
| 52 | 52 | quickType = |
| 53 | 53 | Jdec.succeed QuickType |
| 54 | - |> Jpipe.custom (optionalField "arrNullable" (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.string))) Nothing) | |
| 55 | - |> Jpipe.custom (optionalField "arrOne" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 54 | + |> Jpipe.custom (optionalField "arrNullable" (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.string) )) Nothing) | |
| 55 | + |> Jpipe.custom (optionalField "arrOne" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 56 | 56 | |> Jpipe.required "nullable" (Jdec.nullable Jdec.string) |
| 57 | 57 | |> Jpipe.required "one" Jdec.string |
| 58 | 58 | |> Jpipe.custom (optionalField "optional" (Jdec.nullable Jdec.string) Nothing) |
Test case
1 generated file · +1 −1test/inputs/schema/issue2680-top-level-array.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -33,7 +33,7 @@ optionalField key decoder fallback = | ||
| 33 | 33 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 34 | 34 | |
| 35 | 35 | quickType : Jdec.Decoder QuickType |
| 36 | -quickType = Jdec.list Jdec.int | |
| 36 | +quickType = Jdec.list Jdec.int | |
| 37 | 37 | |
| 38 | 38 | quickTypeToString : QuickType -> String |
| 39 | 39 | quickTypeToString r = Jenc.encode 0 (Jenc.list Jenc.int r) |
Test case
1 generated file · +5 −5test/inputs/schema/min-max-items.schema
Mschema-elmdefault / QuickType.elm+5 −5
| @@ -49,11 +49,11 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 49 | 49 | quickType : Jdec.Decoder QuickType |
| 50 | 50 | quickType = |
| 51 | 51 | Jdec.succeed QuickType |
| 52 | - |> Jpipe.required "maxOnly" (Jdec.list Jdec.int) | |
| 53 | - |> Jpipe.required "minAndMax" (Jdec.list Jdec.float) | |
| 54 | - |> Jpipe.required "minOnly" (Jdec.list Jdec.string) | |
| 55 | - |> Jpipe.required "plain" (Jdec.list Jdec.string) | |
| 56 | - |> Jpipe.required "unionItems" (Jdec.list unionItem) | |
| 52 | + |> Jpipe.required "maxOnly" (Jdec.list Jdec.int |> Jdec.andThen (\x -> if True && List.length x <= 3 then Jdec.succeed x else Jdec.fail "Array length out of range")) | |
| 53 | + |> Jpipe.required "minAndMax" (Jdec.list Jdec.float |> Jdec.andThen (\x -> if List.length x >= 1 && List.length x <= 4 then Jdec.succeed x else Jdec.fail "Array length out of range")) | |
| 54 | + |> Jpipe.required "minOnly" (Jdec.list Jdec.string |> Jdec.andThen (\x -> if List.length x >= 2 && True then Jdec.succeed x else Jdec.fail "Array length out of range")) | |
| 55 | + |> Jpipe.required "plain" (Jdec.list Jdec.string ) | |
| 56 | + |> Jpipe.required "unionItems" (Jdec.list unionItem |> Jdec.andThen (\x -> if List.length x >= 2 && True then Jdec.succeed x else Jdec.fail "Array length out of range")) | |
| 57 | 57 | |
| 58 | 58 | encodeQuickType : QuickType -> Jenc.Value |
| 59 | 59 | encodeQuickType x = |
Test case
1 generated file · +1 −1test/inputs/schema/nested-intersection-union.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -48,7 +48,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 48 | 48 | quickType : Jdec.Decoder QuickType |
| 49 | 49 | quickType = |
| 50 | 50 | Jdec.succeed QuickType |
| 51 | - |> Jpipe.required "input" (Jdec.list item) | |
| 51 | + |> Jpipe.required "input" (Jdec.list item ) | |
| 52 | 52 | |
| 53 | 53 | encodeQuickType : QuickType -> Jenc.Value |
| 54 | 54 | encodeQuickType x = |
Test case
1 generated file · +2 −2test/inputs/schema/optional-const-ref.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -52,10 +52,10 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 52 | 52 | quickType : Jdec.Decoder QuickType |
| 53 | 53 | quickType = |
| 54 | 54 | Jdec.succeed QuickType |
| 55 | - |> Jpipe.custom (optionalField "coordinates" (Jdec.nullable (Jdec.list coordinate)) Nothing) | |
| 55 | + |> Jpipe.custom (optionalField "coordinates" (Jdec.nullable (Jdec.list coordinate )) Nothing) | |
| 56 | 56 | |> Jpipe.custom (optionalField "count" (Jdec.nullable Jdec.int) Nothing) |
| 57 | 57 | |> Jpipe.custom (optionalField "label" (Jdec.nullable Jdec.string) Nothing) |
| 58 | - |> Jpipe.required "requiredCoordinates" (Jdec.list coordinate) | |
| 58 | + |> Jpipe.required "requiredCoordinates" (Jdec.list coordinate ) | |
| 59 | 59 | |> Jpipe.required "requiredCount" Jdec.int |
| 60 | 60 | |> Jpipe.required "requiredLabel" Jdec.string |
| 61 | 61 | |> Jpipe.custom (optionalField "weight" (Jdec.nullable Jdec.float) Nothing) |
Test case
1 generated file · +2 −2test/inputs/schema/prefix-items.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -46,8 +46,8 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 46 | 46 | quickType : Jdec.Decoder QuickType |
| 47 | 47 | quickType = |
| 48 | 48 | Jdec.succeed QuickType |
| 49 | - |> Jpipe.required "open" (Jdec.list open) | |
| 50 | - |> Jpipe.required "tuple" (Jdec.list open) | |
| 49 | + |> Jpipe.required "open" (Jdec.list open ) | |
| 50 | + |> Jpipe.required "tuple" (Jdec.list open ) | |
| 51 | 51 | |
| 52 | 52 | encodeQuickType : QuickType -> Jenc.Value |
| 53 | 53 | encodeQuickType x = |
Test case
1 generated file · +6 −6test/inputs/schema/renaming-bug.schema
Mschema-elmdefault / QuickType.elm+6 −6
| @@ -145,8 +145,8 @@ quickType : Jdec.Decoder QuickType | ||
| 145 | 145 | quickType = |
| 146 | 146 | Jdec.succeed QuickType |
| 147 | 147 | |> Jpipe.custom (optionalField "version" (Jdec.nullable Jdec.string) Nothing) |
| 148 | - |> Jpipe.custom (optionalField "fruits" (Jdec.nullable (Jdec.list fruit)) Nothing) | |
| 149 | - |> Jpipe.custom (optionalField "vehicles" (Jdec.nullable (Jdec.list vehicle)) Nothing) | |
| 148 | + |> Jpipe.custom (optionalField "fruits" (Jdec.nullable (Jdec.list fruit )) Nothing) | |
| 149 | + |> Jpipe.custom (optionalField "vehicles" (Jdec.nullable (Jdec.list vehicle )) Nothing) | |
| 150 | 150 | |
| 151 | 151 | encodeQuickType : QuickType -> Jenc.Value |
| 152 | 152 | encodeQuickType x = |
| @@ -160,7 +160,7 @@ fruit : Jdec.Decoder Fruit | ||
| 160 | 160 | fruit = |
| 161 | 161 | Jdec.succeed Fruit |
| 162 | 162 | |> Jpipe.custom (optionalField "apple" (Jdec.nullable Jdec.bool) Nothing) |
| 163 | - |> Jpipe.custom (optionalField "berries" (Jdec.nullable (Jdec.list berry)) Nothing) | |
| 163 | + |> Jpipe.custom (optionalField "berries" (Jdec.nullable (Jdec.list berry )) Nothing) | |
| 164 | 164 | |> Jpipe.custom (optionalField "orange" (Jdec.nullable Jdec.bool) Nothing) |
| 165 | 165 | |
| 166 | 166 | encodeFruit : Fruit -> Jenc.Value |
| @@ -176,7 +176,7 @@ berry = | ||
| 176 | 176 | Jdec.succeed Berry |
| 177 | 177 | |> Jpipe.custom (optionalField "color" (Jdec.nullable color) Nothing) |
| 178 | 178 | |> Jpipe.custom (optionalField "name" (Jdec.nullable Jdec.string) Nothing) |
| 179 | - |> Jpipe.custom (optionalField "shapes" (Jdec.nullable (Jdec.list shape)) Nothing) | |
| 179 | + |> Jpipe.custom (optionalField "shapes" (Jdec.nullable (Jdec.list shape )) Nothing) | |
| 180 | 180 | |
| 181 | 181 | encodeBerry : Berry -> Jenc.Value |
| 182 | 182 | encodeBerry x = |
| @@ -214,7 +214,7 @@ geometry : Jdec.Decoder Geometry | ||
| 214 | 214 | geometry = |
| 215 | 215 | Jdec.succeed Geometry |
| 216 | 216 | |> Jpipe.custom (optionalField "rectShape" (Jdec.nullable rectShape) Nothing) |
| 217 | - |> Jpipe.custom (optionalField "circularShape" (Jdec.nullable (Jdec.list circularShape)) Nothing) | |
| 217 | + |> Jpipe.custom (optionalField "circularShape" (Jdec.nullable (Jdec.list circularShape )) Nothing) | |
| 218 | 218 | |
| 219 | 219 | encodeGeometry : Geometry -> Jenc.Value |
| 220 | 220 | encodeGeometry x = |
| @@ -237,7 +237,7 @@ encodeCircularShape x = | ||
| 237 | 237 | rectShape : Jdec.Decoder RectShape |
| 238 | 238 | rectShape = |
| 239 | 239 | Jdec.succeed RectShape |
| 240 | - |> Jpipe.custom (optionalField "parts" (Jdec.nullable (Jdec.list part)) Nothing) | |
| 240 | + |> Jpipe.custom (optionalField "parts" (Jdec.nullable (Jdec.list part )) Nothing) | |
| 241 | 241 | |
| 242 | 242 | encodeRectShape : RectShape -> Jenc.Value |
| 243 | 243 | encodeRectShape x = |
Test case
1 generated file · +1 −1test/inputs/schema/top-level-array.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -39,7 +39,7 @@ optionalField key decoder fallback = | ||
| 39 | 39 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 40 | 40 | |
| 41 | 41 | quickType : Jdec.Decoder QuickType |
| 42 | -quickType = Jdec.list textClassificationOutputElement | |
| 42 | +quickType = Jdec.list textClassificationOutputElement | |
| 43 | 43 | |
| 44 | 44 | quickTypeToString : QuickType -> String |
| 45 | 45 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeTextClassificationOutputElement r) |
Test case
1 generated file · +1 −1test/inputs/schema/top-level-primitive-array.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -33,7 +33,7 @@ optionalField key decoder fallback = | ||
| 33 | 33 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 34 | 34 | |
| 35 | 35 | quickType : Jdec.Decoder QuickType |
| 36 | -quickType = Jdec.list Jdec.string | |
| 36 | +quickType = Jdec.list Jdec.string | |
| 37 | 37 | |
| 38 | 38 | quickTypeToString : QuickType -> String |
| 39 | 39 | quickTypeToString r = Jenc.encode 0 (Jenc.list Jenc.string r) |
Test case
1 generated file · +1 −1test/inputs/schema/tuple.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -45,7 +45,7 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 45 | 45 | quickType : Jdec.Decoder QuickType |
| 46 | 46 | quickType = |
| 47 | 47 | Jdec.succeed QuickType |
| 48 | - |> Jpipe.required "tuple" (Jdec.list tuple) | |
| 48 | + |> Jpipe.required "tuple" (Jdec.list tuple ) | |
| 49 | 49 | |
| 50 | 50 | encodeQuickType : QuickType -> Jenc.Value |
| 51 | 51 | encodeQuickType x = |
Test case
1 generated file · +2 −2test/inputs/schema/unevaluated-properties.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -81,7 +81,7 @@ config = | ||
| 81 | 81 | Jdec.succeed Config |
| 82 | 82 | |> Jpipe.custom (optionalField "closed" (Jdec.nullable closed) Nothing) |
| 83 | 83 | |> Jpipe.custom (optionalField "name" (Jdec.nullable Jdec.string) Nothing) |
| 84 | - |> Jpipe.custom (optionalField "settings" (Jdec.nullable (Jdec.dict (Jdec.list item))) Nothing) | |
| 84 | + |> Jpipe.custom (optionalField "settings" (Jdec.nullable (Jdec.dict (Jdec.list item ))) Nothing) | |
| 85 | 85 | |
| 86 | 86 | encodeConfig : Config -> Jenc.Value |
| 87 | 87 | encodeConfig x = |
| @@ -94,7 +94,7 @@ encodeConfig x = | ||
| 94 | 94 | closed : Jdec.Decoder Closed |
| 95 | 95 | closed = |
| 96 | 96 | Jdec.oneOf |
| 97 | - [ Jdec.map AnythingArrayInClosed (Jdec.list Jdec.value) | |
| 97 | + [ Jdec.map AnythingArrayInClosed (Jdec.list Jdec.value ) | |
| 98 | 98 | , Jdec.map BoolInClosed Jdec.bool |
| 99 | 99 | , Jdec.map IntegerInClosed Jdec.int |
| 100 | 100 | , Jdec.null NullInClosed |
Test case
1 generated file · +1 −1test/inputs/schema/union.schema
Mschema-elmdefault / QuickType.elm+1 −1
| @@ -40,7 +40,7 @@ optionalField key decoder fallback = | ||
| 40 | 40 | Just x -> Jdec.decodeValue decoder x |> Result.map Jdec.succeed |> Result.withDefault (Jdec.fail ("Invalid " ++ key))) |
| 41 | 41 | |
| 42 | 42 | quickType : Jdec.Decoder QuickType |
| 43 | -quickType = Jdec.list quickTypeElement | |
| 43 | +quickType = Jdec.list quickTypeElement | |
| 44 | 44 | |
| 45 | 45 | quickTypeToString : QuickType -> String |
| 46 | 46 | quickTypeToString r = Jenc.encode 0 (Jenc.list encodeQuickTypeElement r) |
Test case
1 generated file · +2 −2test/inputs/schema/uuid.schema
Mschema-elmdefault / QuickType.elm+2 −2
| @@ -45,8 +45,8 @@ quickTypeToString r = Jenc.encode 0 (encodeQuickType r) | ||
| 45 | 45 | quickType : Jdec.Decoder QuickType |
| 46 | 46 | quickType = |
| 47 | 47 | Jdec.succeed QuickType |
| 48 | - |> Jpipe.custom (optionalField "arrNullable" (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.string))) Nothing) | |
| 49 | - |> Jpipe.custom (optionalField "arrOne" (Jdec.nullable (Jdec.list Jdec.string)) Nothing) | |
| 48 | + |> Jpipe.custom (optionalField "arrNullable" (Jdec.nullable (Jdec.list (Jdec.nullable Jdec.string) )) Nothing) | |
| 49 | + |> Jpipe.custom (optionalField "arrOne" (Jdec.nullable (Jdec.list Jdec.string )) Nothing) | |
| 50 | 50 | |> Jpipe.required "nullable" (Jdec.nullable Jdec.string) |
| 51 | 51 | |> Jpipe.required "one" Jdec.string |
| 52 | 52 | |> Jpipe.custom (optionalField "optional" (Jdec.nullable Jdec.string) Nothing) |
No generated files match these filters.