Add flag to use eike/json-decode-complete#318
Open
miniBill wants to merge 6 commits into
Open
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
Author
|
So the diff is because |
diff --ignore-all-space --minimal --new-file --recursive main/cli/generated/AdditionalProperties/Json.elm branch/cli/generated/AdditionalProperties/Json.elm
20a21
> import DecodeComplete
132c133,134
< Json.Decode.succeed
---
> DecodeComplete.complete
> (DecodeComplete.object
140,141c142
< |> OpenApi.Common.jsonDecodeAndMap
< (OpenApi.Common.decodeOptionalField
---
> |> DecodeComplete.omissible
142a144,145
> (Json.Decode.map
> Just
145,146c148,149
< |> OpenApi.Common.jsonDecodeAndMap
< (Json.Decode.field
---
> Nothing
> |> DecodeComplete.required
diff --ignore-all-space --minimal --new-file --recursive main/cli/generated/GithubV3RestApi/Json.elm branch/cli/generated/GithubV3RestApi/Json.elm
12604,12611c12604
< ( "reviewer"
< , case mapUnpack of
< GithubV3RestApi.Types.SimpleUser_Or_Team__SimpleUser content ->
< encodeSimpleUser content
<
< GithubV3RestApi.Types.SimpleUser_Or_Team__Team content ->
< encodeTeam content
< )
---
> ( "reviewer", Basics.identity mapUnpack )
39280,39288c39273
< (Json.Decode.oneOf
< [ Json.Decode.map
< GithubV3RestApi.Types.SimpleUser_Or_Team__SimpleUser
< decodeSimpleUser
< , Json.Decode.map
< GithubV3RestApi.Types.SimpleUser_Or_Team__Team
< decodeTeam
< ]
< )
---
> Json.Decode.value
diff --ignore-all-space --minimal --new-file --recursive main/cli/generated/GithubV3RestApi/Types.elm branch/cli/generated/GithubV3RestApi/Types.elm
67c67
< , NullableInt_Or_NullableListString_Or_NullableString(..), PrivateUser_Or_PublicUser(..), Repository_Or_StarredRepository(..), SimpleUser_Or_Stargazer(..), SimpleUser_Or_Team(..), ValidationError_Or_ValidationErrorSimple(..)
---
> , NullableInt_Or_NullableListString_Or_NullableString(..), PrivateUser_Or_PublicUser(..), Repository_Or_StarredRepository(..), SimpleUser_Or_Stargazer(..), ValidationError_Or_ValidationErrorSimple(..)
148c148
< @docs NullableInt_Or_NullableListString_Or_NullableString, PrivateUser_Or_PublicUser, Repository_Or_StarredRepository, SimpleUser_Or_Stargazer, SimpleUser_Or_Team, ValidationError_Or_ValidationErrorSimple
---
> @docs NullableInt_Or_NullableListString_Or_NullableString, PrivateUser_Or_PublicUser, Repository_Or_StarredRepository, SimpleUser_Or_Stargazer, ValidationError_Or_ValidationErrorSimple
4474c4474
< { reviewer : Maybe SimpleUser_Or_Team
---
> { reviewer : Maybe Json.Encode.Value
8299,8303d8298
<
<
< type SimpleUser_Or_Team
< = SimpleUser_Or_Team__SimpleUser SimpleUser
< | SimpleUser_Or_Team__Team Team
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.