mirror of
https://github.com/tribufu/tribufu-dotnet
synced 2025-06-16 18:34:19 +00:00
13 lines
541 B
PowerShell
13 lines
541 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
$env:CSHARP_POST_PROCESS_FILE = ""
|
|
|
|
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
|
|
-i https://api.tribufu.com/openapi.json `
|
|
-g csharp `
|
|
-o . `
|
|
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
|
|
--additional-properties=packageName=Tribufu,library=restsharp,apiName=TribufuApi,zeroBasedEnums=true,nullableReferenceTypes=true `
|
|
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=Tribufu `
|
|
--skip-validate-spec
|