Hi All, I have generated the openapi-generator-cli...
# general
g
Hi All, I have generated the openapi-generator-cli author default mustache templates, I need to implement pact in mustache templates and generate the client, is there any direct way convert and add pact in mustache templates ?
npx openapi-generator-cli author template -g go -o templates-go
npx openapi-generator-cli generate \
-i /path/to/openapi-spec.yaml \
-g go \
-t /path/to/templates-go \
-o /path/to/generated-go-client
y
you would need to write a template for a pact-go test with placeholders
g
is there any documentation modifying mustache and converting into pact ?
y
there are official docs for openapi generator template customisation https://openapi-generator.tech/docs/templating/ there isn’t anything bespoke to pact