2
0
mirror of https://github.com/tribufu/sdk-rust synced 2025-06-19 04:24:18 +00:00

Generate api client with openapi-generator ()

* Generate api client with openapi-generator

* Add wrapper struct

* Add basic example
This commit is contained in:
Guilherme Werner
2025-06-03 19:47:49 -03:00
committed by GitHub
parent e701f20c1a
commit 23af141e2d
69 changed files with 6886 additions and 880 deletions

10
scripts/generate.ps1 Normal file

@ -0,0 +1,10 @@
#!/usr/bin/env pwsh
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
-i https://api.tribufu.com/openapi.json `
-g rust `
-o . `
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
--additional-properties=packageName=tribufu,library=reqwest-trait,supportAsync=true,preferUnsignedInt=true `
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
--skip-validate-spec