Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6ae35fb
Add generation templates
AndrewBenzSW Jul 3, 2024
2c2d343
Update configuration
AndrewBenzSW Jul 3, 2024
1afe54b
Don't write certain files
AndrewBenzSW Jul 3, 2024
734c7d5
Don't include 'src' in the source output path
AndrewBenzSW Jul 3, 2024
2fd66f4
Rename the project path to match the namespace to make generation easier
AndrewBenzSW Jul 3, 2024
d3b282d
Ignore extra files
AndrewBenzSW Jul 3, 2024
bb374e4
Final prep before generating into real project
AndrewBenzSW Jul 3, 2024
c198dcc
Rename tests project to match generation
AndrewBenzSW Jul 3, 2024
bb35b29
Getting close to matching the API format
AndrewBenzSW Jul 3, 2024
9cbc699
Finish the API generation
AndrewBenzSW Jul 5, 2024
3e72dfe
Initial attempt at autogenerating the SDK
AndrewBenzSW Jul 8, 2024
0427f85
Get the serialization working for OneOf models
AndrewBenzSW Jul 9, 2024
4b65194
Handle enum values as types that can be customized
AndrewBenzSW Jul 9, 2024
5431f25
Generate documentation
AndrewBenzSW Jul 9, 2024
4bcb4dd
Fix some errors
AndrewBenzSW Jul 9, 2024
8fe073c
Formatting
AndrewBenzSW Jul 9, 2024
0f78a0b
Remove huge block of text at the top of all the generated source
AndrewBenzSW Jul 9, 2024
ad62c2d
Fix response deserialization
AndrewBenzSW Jul 9, 2024
6501714
Fix some enum and other issues
AndrewBenzSW Jul 9, 2024
10efe06
Add legacy docs and remove commented code
AndrewBenzSW Jul 9, 2024
c78e6fe
Remove unmodified templates
AndrewBenzSW Jul 11, 2024
808bf2d
Remove generated docs & tests
AndrewBenzSW Jul 11, 2024
1184ce9
Ignore removed tests & docs from generation
AndrewBenzSW Jul 11, 2024
c28dca8
Modify templates so they don't require dotnet format to be run
AndrewBenzSW Jul 11, 2024
cc5b495
Add tests and clean up code
AndrewBenzSW Jul 11, 2024
77b4f2b
Remove version of APIs that take Config
AndrewBenzSW Jul 11, 2024
3426add
Lowered the version to 2.1 since the new methods don't break existing…
AndrewBenzSW Jul 11, 2024
ef49571
Merge branch 'main' into abenz/autogenerate-sdk
AndrewBenzSW Jul 11, 2024
0a0834a
Bump the version of the project
AndrewBenzSW Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: msbuild shipengine-dotnet.sln /p:Configuration=Release

- name: Run Test
run: dotnet test ShipEngine.Tests/bin/Release/net462/ShipEngine.Tests.dll
run: dotnet test ShipEngineSDK.Test/bin/Release/net462/ShipEngineSDK.Test.dll

dot_net_core_test:
name: .Net 8.0 on ${{ matrix.os }}
Expand Down Expand Up @@ -65,21 +65,21 @@ jobs:
run: dotnet build --configuration Release

- name: Run 8.0 Tests
run: dotnet test -f net8.0 --settings ShipEngine.Tests/coverage.runsettings
run: dotnet test -f net8.0 --settings ShipEngineSDK.Test/coverage.runsettings

- name: Move generated lcov file to expected location
shell: bash
run: |
ls -Rlh ShipEngine.Tests/TestResults/*/coverage.info
cat ShipEngine.Tests/TestResults/*/coverage.info > ShipEngine.Tests/TestResults/lcov.info
ls -Rlh ShipEngineSDK.Test/TestResults/*/coverage.info
cat ShipEngineSDK.Test/TestResults/*/coverage.info > ShipEngineSDK.Test/TestResults/lcov.info

- name: Send code coverage results to Coveralls
uses: coverallsapp/github-action@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: run-${{ matrix.test_number }}
path-to-lcov: ShipEngine.Tests/TestResults/lcov.info
path-to-lcov: ShipEngineSDK.Test/TestResults/lcov.info

coverage:
name: Code Coverage
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:

with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: ShipEngine/ShipEngine.csproj
PROJECT_FILE_PATH: ShipEngineSDK/ShipEngineSDK.csproj

# NuGet package id, used for version detection & defaults to project name
PACKAGE_NAME: ShipEngine
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ TestResults
.gitmodules
dockerfile
docker-compose.*

node_modules
out
37 changes: 37 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

*.sln
**/*.csproj
appveyor.yml
git_push.sh
ShipEngineSDK/Client/*.cs

# We should re-enable these eventually
README.md
docs/*.md
ShipEngineSDK.Test/*/*.cs
api/**
.gitignore
.openapi-generator-ignore
Loading