Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 1.21 KB

File metadata and controls

24 lines (23 loc) · 1.21 KB

SDK generation steps

git clone https://github.com/confluentinc/openapi-generator.git
cd openapi-generator
git checkout ath-add-interfaces
  • In openapi-generator create the required jar using mvn clean package
  • Run the following command to generate the latest SDK code:
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
 -i <path-to-opnapi-spec.yaml>  \
 -g go \
 -o <path-to-schema-registry-sdk-go-directory> \
 --package-name schemaregistry --git-user-id confluentinc \
 --git-repo-id schema-registry-sdk-go \
 --additional-properties=generateInterfaces=true \
 --additional-properties=nullables=true
  • Lastly, run make mock from schema-registry-sdk-go directory to generate the api_default.go file.