Skip to content

Commit

Permalink
Merge pull request #133 from wolfadex/one-error
Browse files Browse the repository at this point in the history
In case of a single error, don't define a custom type
  • Loading branch information
wolfadex authored Aug 3, 2024
2 parents dc858ec + 58d9e06 commit 20a8059
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 107 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ jobs:
- name: Diff the outputs
run: |
echo '```diff' > diff.md
diff -w -d -r main/generated branch/generated >> diff.md || true # We ignore diff exiting with a 1 on diff
echo '```' >> diff.md
diff -w -d -r main/generated branch/generated | dd bs=1024 count=30 >> diff.md || true # We ignore diff exiting with a 1 on diff
echo -e '\n```' >> diff.md
- name: Post a comment with the diff
uses: JoseThen/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions example/src/Example.elm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module Example exposing (main)

import AirlineCodeLookupApi.Api
import AirlineCodeLookupApi.Types
import Browser
import BasicRouter.Types
import BasicRouter.Json
import BasicRouter.Types
import Browser
import DbFahrplanApi.Api
import DbFahrplanApi.Types
import GithubV3RestApi.Api
Expand Down Expand Up @@ -67,7 +67,7 @@ subscriptions _ =


type Msg
= ConduitResponse (Result (OpenApi.Common.Error RealworldConduitApi.Types.GetArticle_Error String) RealworldConduitApi.Types.SingleArticleResponse)
= ConduitResponse (Result (OpenApi.Common.Error RealworldConduitApi.Types.GenericError String) RealworldConduitApi.Types.SingleArticleResponse)
| AmadeusResponse (Result (OpenApi.Common.Error AirlineCodeLookupApi.Types.Getairlines_Error String) AirlineCodeLookupApi.Types.Airlines)
-- | BimResponse (Result (OpenApi.Common.Error BimcloudApi20232AlphaRelease.BlobStoreService10BeginBatchUpload_Error Bytes.Bytes) Bytes.Bytes)
| GithubResponse (Result (OpenApi.Common.Error () String) GithubV3RestApi.Types.Root)
Expand Down
Loading

0 comments on commit 20a8059

Please sign in to comment.