mirror of
https://github.com/tribufu/proxmox-sharp
synced 2026-05-06 14:57:28 +00:00
Auto generate api client
This commit is contained in:
parent
79236af76b
commit
f75e0275cc
712 changed files with 277698 additions and 885 deletions
13
scripts/generate.ps1
Normal file
13
scripts/generate.ps1
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env pwsh
|
||||
|
||||
$env:CSHARP_POST_PROCESS_FILE = ""
|
||||
|
||||
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
|
||||
-i ./vendor/spec.v2.yaml `
|
||||
-g csharp `
|
||||
-o . `
|
||||
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
|
||||
--additional-properties=packageName=ProxmoxSharp,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true `
|
||||
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=ProxmoxGenerated `
|
||||
--type-mappings Any=object `
|
||||
--skip-validate-spec
|
||||
Loading…
Add table
Add a link
Reference in a new issue