Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Use Google.Api.Generator.Rest from a dotnet tool #2816

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"commands": [
"generate-sbom"
]
},
"Google.Api.Generator.Rest": {
"version": "1.5.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had 1.4.29 before.

"commands": [
"google-rest-generator"
]
}
}
}
53 changes: 0 additions & 53 deletions CSharpGeneratorFunctions.sh

This file was deleted.

5 changes: 2 additions & 3 deletions GenerateApis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ then
fi
fi

source ./CSharpGeneratorFunctions.sh
install_csharp_generator
dotnet tool restore > /dev/null

CODE_GENERATION_DIR=Src/Generated

Expand All @@ -55,7 +54,7 @@ for file in $FILES
do
service=$(basename $file | sed 's/.json//g')
echo "Generating $service from $file"
run_csharp_generator "$file" "$CODE_GENERATION_DIR" features.json "EnumStorage/$service.json"
dotnet google-rest-generator "$file" "$CODE_GENERATION_DIR" features.json "EnumStorage/$service.json"

if [[ -f PostGeneration/$service.sh ]]
then
Expand Down