Skip to content

Commit e844ad7

Browse files
AndrewBenzSWjoshuaflanaganmattburtonjpillBibhusan-Shah
authored
Autogenerate the SDK from the OpenAPI spec (3.0.0) (#102)
* Use nullable reference types and datetimeoffset * Mark non-required types as nullable * Add required keyword to required properties * Mark API method parameters as optional * Allow SDK to handle No Content (204) responses Previously, the SDK would throw an exception when trying to parse an empty string. Now we will return the empty string, if a string response is requested. If the caller was expecting a deserialized type, an exception will still be raised for no content. * Remove version from generated files Including the version in every file causes every file to be modified any time the generator is run. This creates a large diff that obscures the actual changes. The version is already known in the generation/swagger.json file. Add warning that file is generated and should not be modified. * Verify can deserialize create label response Convert doubles to decimals * Add optional error properties Allow arbitrary values in advanced_options. * added A4 and A6 to label layout enum * Mark v2 methods as obsolete * Add generated documentation * Update supported .NET versions --------- Co-authored-by: Joshua Flanagan <joshuaflanagan@gmail.com> Co-authored-by: Matt Burton <matt.burton@gmail.com> Co-authored-by: Joe Pill <joe.pill@auctane.com> Co-authored-by: Bibhusan-Shah <bibhusan.shah@auctane.com> Co-authored-by: Bibhusan-Shah <87672403+Bibhusan-Shah@users.noreply.github.com>
1 parent d491920 commit e844ad7

708 files changed

Lines changed: 63663 additions & 1174 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-cd.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,6 @@ jobs:
7575
ls -Rlh ShipEngineSDK.Test/TestResults/*/coverage.info
7676
cat ShipEngineSDK.Test/TestResults/*/coverage.info > ShipEngineSDK.Test/TestResults/lcov.info
7777
78-
- name: Send code coverage results to Coveralls
79-
uses: coverallsapp/github-action@v1.1.0
80-
with:
81-
github-token: ${{ secrets.GITHUB_TOKEN }}
82-
parallel: true
83-
flag-name: run-${{ matrix.test_number }}
84-
path-to-lcov: ShipEngineSDK.Test/TestResults/lcov.info
85-
86-
coverage:
87-
name: Code Coverage
88-
needs: dot_net_core_test
89-
runs-on: ubuntu-latest
90-
steps:
91-
- name: Coveralls Finished
92-
uses: coverallsapp/github-action@master
93-
with:
94-
github-token: ${{ secrets.github_token }}
95-
parallel-finished: true
96-
9778
nuget-deploy:
9879
runs-on: ubuntu-latest
9980
needs: [dot_net_framework_test, dot_net_core_test]

.openapi-generator-ignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
**/*.csproj
2727
appveyor.yml
2828
git_push.sh
29+
ShipEngineSDK/Api/IApi.cs
2930
ShipEngineSDK/Client/*.cs
31+
ShipEngineSDK/Extensions/*.cs
3032

3133
# We should re-enable these eventually
32-
README.md
33-
docs/*.md
34+
*/README.md
35+
docs/scripts/*
3436
ShipEngineSDK.Test/*/*.cs
3537
api/**
3638
.gitignore

0 commit comments

Comments
 (0)